pub enum SendAction {
Unicast(PublicKey, Vec<u8>),
Multicast(Vec<PublicKey>, Vec<u8>),
Broadcast(Vec<u8>),
}Variants§
Unicast(PublicKey, Vec<u8>)
Send a message to one peer.
Multicast(Vec<PublicKey>, Vec<u8>)
Send a message to some peers.
Broadcast(Vec<u8>)
Send a message to all peers with Role::Active.
Trait Implementations§
Source§impl Clone for SendAction
impl Clone for SendAction
Source§fn clone(&self) -> SendAction
fn clone(&self) -> SendAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SendAction
impl RefUnwindSafe for SendAction
impl Send for SendAction
impl Sync for SendAction
impl Unpin for SendAction
impl UnsafeUnpin for SendAction
impl UnwindSafe for SendAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more