pub enum Wire<G, R> {
Gossip(G),
Recovery(R),
}Expand description
The wire, multiplexing the two children Algorithm 3.10 names.
Variants§
Gossip(G)
The gossip child’s traffic.
Recovery(R)
Recovery traffic, which deliberately does not go through the gossip.
Trait Implementations§
Source§impl<'de, G, R> Deserialize<'de> for Wire<G, R>where
G: Deserialize<'de>,
R: Deserialize<'de>,
impl<'de, G, R> Deserialize<'de> for Wire<G, R>where
G: Deserialize<'de>,
R: 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<G: Eq, R: Eq> Eq for Wire<G, R>
Source§impl<G: PartialEq, R: PartialEq> PartialEq for Wire<G, R>
impl<G: PartialEq, R: PartialEq> PartialEq for Wire<G, R>
impl<G: PartialEq, R: PartialEq> StructuralPartialEq for Wire<G, R>
Auto Trait Implementations§
impl<G, R> Freeze for Wire<G, R>
impl<G, R> RefUnwindSafe for Wire<G, R>where
G: RefUnwindSafe,
R: RefUnwindSafe,
impl<G, R> Send for Wire<G, R>
impl<G, R> Sync for Wire<G, R>
impl<G, R> Unpin for Wire<G, R>
impl<G, R> UnsafeUnpin for Wire<G, R>where
G: UnsafeUnpin,
R: UnsafeUnpin,
impl<G, R> UnwindSafe for Wire<G, R>where
G: UnwindSafe,
R: 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