Struct distant_net::server::RequestCtx
source · pub struct RequestCtx<T, U> {
pub connection_id: ConnectionId,
pub request: Request<T>,
pub reply: ServerReply<U>,
}
Expand description
Represents contextual information for working with an inbound request.
Fields§
§connection_id: ConnectionId
Unique identifer associated with the connection that sent the request.
request: Request<T>
The request being handled.
reply: ServerReply<U>
Used to send replies back to be sent out by the server.
Trait Implementations§
Auto Trait Implementations§
impl<T, U> !RefUnwindSafe for RequestCtx<T, U>
impl<T, U> Send for RequestCtx<T, U>where T: Send, U: Send,
impl<T, U> Sync for RequestCtx<T, U>where T: Sync, U: Send,
impl<T, U> Unpin for RequestCtx<T, U>where T: Unpin,
impl<T, U> !UnwindSafe for RequestCtx<T, U>
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