pub enum Wire<E, C> {
Change(E),
Consensus(C),
}Expand description
The wire, multiplexing the epoch-change child and whichever epoch-consensus instance is live.
Variants§
Change(E)
The epoch-change child’s traffic.
Consensus(C)
The live epoch-consensus instance’s traffic.
The epoch tag that makes ep.ts addressable lives inside C rather than here — see
ep::Tagged. It belongs to the instance, so the instance stamps it and drops what is not
its own, and a parent cannot forget to.
Trait Implementations§
Source§impl<'de, E, C> Deserialize<'de> for Wire<E, C>where
E: Deserialize<'de>,
C: Deserialize<'de>,
impl<'de, E, C> Deserialize<'de> for Wire<E, C>where
E: Deserialize<'de>,
C: 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<E: Eq, C: Eq> Eq for Wire<E, C>
Source§impl<E: PartialEq, C: PartialEq> PartialEq for Wire<E, C>
impl<E: PartialEq, C: PartialEq> PartialEq for Wire<E, C>
impl<E: PartialEq, C: PartialEq> StructuralPartialEq for Wire<E, C>
Auto Trait Implementations§
impl<E, C> Freeze for Wire<E, C>
impl<E, C> RefUnwindSafe for Wire<E, C>where
E: RefUnwindSafe,
C: RefUnwindSafe,
impl<E, C> Send for Wire<E, C>
impl<E, C> Sync for Wire<E, C>
impl<E, C> Unpin for Wire<E, C>
impl<E, C> UnsafeUnpin for Wire<E, C>where
E: UnsafeUnpin,
C: UnsafeUnpin,
impl<E, C> UnwindSafe for Wire<E, C>where
E: UnwindSafe,
C: 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