pub enum Address {
Ip(SocketAddr),
Unix(Cow<'static, Path>),
}Variants§
Ip(SocketAddr)
Unix(Cow<'static, Path>)
Implementations§
Trait Implementations§
source§impl From<SocketAddr> for Address
impl From<SocketAddr> for Address
source§fn from(addr: SocketAddr) -> Address
fn from(addr: SocketAddr) -> Address
Converts to this type from the input type.
source§impl<S: Sync> FromContext<S> for Address
impl<S: Sync> FromContext<S> for Address
type Rejection = Infallible
async fn from_context( context: &HttpContext, _state: &S ) -> Result<Address, Self::Rejection>
source§impl MakeIncoming for Address
impl MakeIncoming for Address
type Incoming = DefaultIncoming
async fn make_incoming( self ) -> Result<<Address as MakeIncoming>::Incoming, Error>
source§impl PartialEq for Address
impl PartialEq for Address
source§impl TryFrom<SocketAddr> for Address
impl TryFrom<SocketAddr> for Address
impl Eq for Address
impl StructuralEq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.