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§
Sourcefn into_bindable(self) -> Result<Bindable>
fn into_bindable(self) -> Result<Bindable>
Convert into a Bindable.