pub trait IntoName: Sized {
// Required methods
fn into_name(self) -> Result<Name, ProtoError>;
fn to_ip(&self) -> Option<IpAddr>;
}
Expand description
Conversion into a Name
Required Methods§
Sourcefn into_name(self) -> Result<Name, ProtoError>
fn into_name(self) -> Result<Name, ProtoError>
Convert this into Name
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.