pub struct Wire<P> {
pub id: MsgId,
pub payload: P,
}Expand description
What crosses the wire: the identifier, and the payload it belongs to.
The single header in the three-layer stack.
Fields§
§id: MsgId§payload: PTrait Implementations§
Source§impl<'de, P> Deserialize<'de> for Wire<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for Wire<P>where
P: 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<P: Eq> Eq for Wire<P>
impl<P: PartialEq> StructuralPartialEq for Wire<P>
Auto Trait Implementations§
impl<P> Freeze for Wire<P>where
P: Freeze,
impl<P> RefUnwindSafe for Wire<P>where
P: RefUnwindSafe,
impl<P> Send for Wire<P>where
P: Send,
impl<P> Sync for Wire<P>where
P: Sync,
impl<P> Unpin for Wire<P>where
P: Unpin,
impl<P> UnsafeUnpin for Wire<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Wire<P>where
P: 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