pub enum Location {
Unspecified,
Ip(SocketAddr),
Url(String),
}Expand description
The remote location of the connection, if set.
Variants§
Unspecified
Remote location unspecified by the transport.
Ip(SocketAddr)
Connected to an IP address through TCP, possibly inside of TLS.
Url(String)
Connected to a URL over some transport probably specified by the URL.
Trait Implementations§
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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