Skip to main content

IntoBindable

Trait IntoBindable 

Source
pub trait IntoBindable {
    // Required method
    fn into_bindable(self) -> Result<Bindable>;
}
Expand description

Trait for types that can be converted into a Bindable.

This trait is implemented for:

  • TcpListener - uses the pre-bound listener directly
  • Types implementing ToSocketAddrs - resolves the address

Required Methods§

Source

fn into_bindable(self) -> Result<Bindable>

Convert into a Bindable.

Implementations on Foreign Types§

Source§

impl IntoBindable for &str

Source§

impl IntoBindable for (&str, u16)

Source§

impl IntoBindable for (IpAddr, u16)

Source§

impl IntoBindable for (Ipv4Addr, u16)

Source§

impl IntoBindable for (Ipv6Addr, u16)

Source§

impl IntoBindable for SocketAddr

Source§

impl IntoBindable for String

Source§

impl IntoBindable for TcpListener

Implementors§