pub enum Wire<M> {
Broadcast(M),
Detector(Heartbeat),
}Expand description
The wire type, multiplexing the two children.
The first multiplexing in this stack. It is an enum rather than a keyed registry, so a message routed to the wrong child cannot compile.
Variants§
Trait Implementations§
Source§impl<'de, M> Deserialize<'de> for Wire<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for Wire<M>where
M: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<M: Eq> Eq for Wire<M>
impl<M: PartialEq> StructuralPartialEq for Wire<M>
Auto Trait Implementations§
impl<M> Freeze for Wire<M>where
M: Freeze,
impl<M> RefUnwindSafe for Wire<M>where
M: RefUnwindSafe,
impl<M> Send for Wire<M>where
M: Send,
impl<M> Sync for Wire<M>where
M: Sync,
impl<M> Unpin for Wire<M>where
M: Unpin,
impl<M> UnsafeUnpin for Wire<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for Wire<M>where
M: UnwindSafe,
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