pub enum BroadcastMsg {
Publish {
channel: Vec<u8>,
message: Bytes,
exclude_thread: Option<ThreadId>,
},
PatternPublish {
channel: Vec<u8>,
message: Bytes,
exclude_thread: Option<ThreadId>,
},
}Variants§
Trait Implementations§
Source§impl Clone for BroadcastMsg
impl Clone for BroadcastMsg
Source§fn clone(&self) -> BroadcastMsg
fn clone(&self) -> BroadcastMsg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BroadcastMsg
impl RefUnwindSafe for BroadcastMsg
impl Send for BroadcastMsg
impl Sync for BroadcastMsg
impl Unpin for BroadcastMsg
impl UnsafeUnpin for BroadcastMsg
impl UnwindSafe for BroadcastMsg
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