pub enum Bind {
Port(u16),
Addr(SocketAddr),
Str(String),
Env {
default_port: u16,
},
Listener(TcpListener),
Uds(PathBuf),
}Expand description
Where to accept connections.
Variants§
Implementations§
Trait Implementations§
Source§impl From<SocketAddr> for Bind
impl From<SocketAddr> for Bind
Source§fn from(addr: SocketAddr) -> Self
fn from(addr: SocketAddr) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Bind
impl RefUnwindSafe for Bind
impl Send for Bind
impl Sync for Bind
impl Unpin for Bind
impl UnsafeUnpin for Bind
impl UnwindSafe for Bind
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