pub struct ClientIp(pub IpAddr);Expand description
The client’s address, put into the request’s extensions by the server.
A newtype rather than a bare SocketAddr so it cannot collide with another
address an application stores in the same type-keyed bag.
Tuple Fields§
§0: IpAddrTrait Implementations§
impl Copy for ClientIp
impl Eq for ClientIp
impl StructuralPartialEq for ClientIp
Auto Trait Implementations§
impl Freeze for ClientIp
impl RefUnwindSafe for ClientIp
impl Send for ClientIp
impl Sync for ClientIp
impl Unpin for ClientIp
impl UnsafeUnpin for ClientIp
impl UnwindSafe for ClientIp
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