pub enum MessageDestination {
AllParties {
reliable: bool,
},
OneParty(PartyIndex),
}Expand description
Destination of an outgoing message
Variants§
Implementations§
Source§impl MessageDestination
impl MessageDestination
Sourcepub fn is_broadcast(&self) -> bool
pub fn is_broadcast(&self) -> bool
Returns true if it’s broadcast message (regardless if it’s reliable or not)
Sourcepub fn is_reliable_broadcast(&self) -> bool
pub fn is_reliable_broadcast(&self) -> bool
Returns true if it’s reliable broadcast message
Trait Implementations§
Source§impl Clone for MessageDestination
impl Clone for MessageDestination
Source§fn clone(&self) -> MessageDestination
fn clone(&self) -> MessageDestination
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 moreSource§impl Debug for MessageDestination
impl Debug for MessageDestination
Source§impl PartialEq for MessageDestination
impl PartialEq for MessageDestination
impl Copy for MessageDestination
impl Eq for MessageDestination
impl StructuralPartialEq for MessageDestination
Auto Trait Implementations§
impl Freeze for MessageDestination
impl RefUnwindSafe for MessageDestination
impl Send for MessageDestination
impl Sync for MessageDestination
impl Unpin for MessageDestination
impl UnwindSafe for MessageDestination
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