Struct distant_core::DistantCtx
source · pub struct DistantCtx {
pub connection_id: ConnectionId,
pub reply: Box<dyn Reply<Data = Response>>,
}
Expand description
Represents the context provided to the DistantApi
for incoming requests
Fields§
§connection_id: ConnectionId
§reply: Box<dyn Reply<Data = Response>>
Auto Trait Implementations§
impl !RefUnwindSafe for DistantCtx
impl Send for DistantCtx
impl Sync for DistantCtx
impl Unpin for DistantCtx
impl !UnwindSafe for DistantCtx
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