pub struct RequestContext {
pub peer_addr: SocketAddr,
pub sender: UnboundedSender<String>,
}
Expand description
Request context
Fields§
§peer_addr: SocketAddr
Peer Address
sender: UnboundedSender<String>
Peer Sender channel
Auto Trait Implementations§
impl Freeze for RequestContext
impl !RefUnwindSafe for RequestContext
impl Send for RequestContext
impl Sync for RequestContext
impl Unpin for RequestContext
impl !UnwindSafe for RequestContext
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