pub enum Wire<B> {
Detector(Heartbeat),
Epoch(B),
}Expand description
The wire, multiplexing the two children.
Variants§
Detector(Heartbeat)
The leader detector’s heartbeats.
Epoch(B)
The broadcast’s traffic, carrying EpochMsg.
Trait Implementations§
Source§impl<'de, B> Deserialize<'de> for Wire<B>where
B: Deserialize<'de>,
impl<'de, B> Deserialize<'de> for Wire<B>where
B: 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<B: Eq> Eq for Wire<B>
impl<B: PartialEq> StructuralPartialEq for Wire<B>
Auto Trait Implementations§
impl<B> Freeze for Wire<B>where
B: Freeze,
impl<B> RefUnwindSafe for Wire<B>where
B: RefUnwindSafe,
impl<B> Send for Wire<B>where
B: Send,
impl<B> Sync for Wire<B>where
B: Sync,
impl<B> Unpin for Wire<B>where
B: Unpin,
impl<B> UnsafeUnpin for Wire<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for Wire<B>where
B: 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