pub enum Resolved {
Bound(SocketAddr),
NoAddress {
interface: String,
why: String,
},
}Expand description
What a BindSpec resolved to.
Two arms and no third, and neither of them is a wildcard: an address to bind, or a named interface that has none. “Bind everything instead” is not an outcome this type can express, which is the strongest form the guarantee can take.
Variants§
Bound(SocketAddr)
Bind here.
NoAddress
The interface is present and holds no IPv4 address. Nothing to bind.
Trait Implementations§
impl Eq for Resolved
impl StructuralPartialEq for Resolved
Auto Trait Implementations§
impl Freeze for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
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