Struct distant_net::server::ConnectionCtx
source · pub struct ConnectionCtx<'a, D> {
pub connection_id: ConnectionId,
pub local_data: &'a mut D,
}Expand description
Represents contextual information for working with an inbound connection
Fields§
§connection_id: ConnectionIdUnique identifer associated with the connection
local_data: &'a mut DReference to the connection’s local data
Auto Trait Implementations§
impl<'a, D> RefUnwindSafe for ConnectionCtx<'a, D>where D: RefUnwindSafe,
impl<'a, D> Send for ConnectionCtx<'a, D>where D: Send,
impl<'a, D> Sync for ConnectionCtx<'a, D>where D: Sync,
impl<'a, D> Unpin for ConnectionCtx<'a, D>
impl<'a, D> !UnwindSafe for ConnectionCtx<'a, D>
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