pub struct SentRef<'a> { /* private fields */ }
Expand description
Provides a reference to a message that is currently inflight on the network from one host to another.
Implementations§
Source§impl SentRef<'_>
impl SentRef<'_>
Sourcepub fn pair(&self) -> (SocketAddr, SocketAddr)
pub fn pair(&self) -> (SocketAddr, SocketAddr)
The (src, dst) SocketAddr
pair for the message.
Auto Trait Implementations§
impl<'a> Freeze for SentRef<'a>
impl<'a> !RefUnwindSafe for SentRef<'a>
impl<'a> Send for SentRef<'a>
impl<'a> Sync for SentRef<'a>
impl<'a> Unpin for SentRef<'a>
impl<'a> !UnwindSafe for SentRef<'a>
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