pub struct InboundContext { /* private fields */ }Expand description
Context passed to TCP/UDP inbound transformation stages.
It exposes connection/datagram identity but does not allow writes.
Implementations§
Source§impl InboundContext
impl InboundContext
pub fn id(&self) -> u64
pub fn peer_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
Auto Trait Implementations§
impl Freeze for InboundContext
impl RefUnwindSafe for InboundContext
impl Send for InboundContext
impl Sync for InboundContext
impl Unpin for InboundContext
impl UnsafeUnpin for InboundContext
impl UnwindSafe for InboundContext
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