pub struct ClientAddr(pub SocketAddr);Expand description
The connection’s remote socket address, threaded from the accept loop onto
parts.extensions so it survives into the handler. A newtype so the typemap
lookup is unambiguous. None for synthetic requests (tasks, some tests).
Tuple Fields§
§0: SocketAddrTrait Implementations§
Source§impl Clone for ClientAddr
impl Clone for ClientAddr
Source§fn clone(&self) -> ClientAddr
fn clone(&self) -> ClientAddr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ClientAddr
Auto Trait Implementations§
impl Freeze for ClientAddr
impl RefUnwindSafe for ClientAddr
impl Send for ClientAddr
impl Sync for ClientAddr
impl Unpin for ClientAddr
impl UnsafeUnpin for ClientAddr
impl UnwindSafe for ClientAddr
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