Struct rocket_client_addr::ClientAddr
source · pub struct ClientAddr {
pub ip: IpAddr,
}Expand description
The request guard used for getting an IP address from a client.
Fields
ip: IpAddrIP address from a client.
Implementations
Trait Implementations
sourceimpl<'a, 'r> FromRequest<'a, 'r> for ClientAddr
impl<'a, 'r> FromRequest<'a, 'r> for ClientAddr
Auto Trait Implementations
impl RefUnwindSafe for ClientAddr
impl Send for ClientAddr
impl Sync for ClientAddr
impl Unpin for ClientAddr
impl UnwindSafe for ClientAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self into a collection.