pub struct OutMessage<P: OverlayProtocol + ?Sized> {
pub destination: Peer<P::Address>,
pub message: P::Message,
}Expand description
An outgoing protocol message addressed to a specific peer.
Fields§
§destination: Peer<P::Address>§message: P::MessageAuto Trait Implementations§
impl<P> Freeze for OutMessage<P>
impl<P> RefUnwindSafe for OutMessage<P>where
<P as OverlayProtocol>::Message: RefUnwindSafe,
<P as OverlayProtocol>::Address: RefUnwindSafe,
P: ?Sized,
impl<P> Send for OutMessage<P>
impl<P> Sync for OutMessage<P>
impl<P> Unpin for OutMessage<P>
impl<P> UnsafeUnpin for OutMessage<P>
impl<P> UnwindSafe for OutMessage<P>where
<P as OverlayProtocol>::Message: UnwindSafe,
<P as OverlayProtocol>::Address: RefUnwindSafe,
P: ?Sized,
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