pub enum AddressType {
Addresses(Vec<NetAddr>),
BindInterface,
}Variants§
Implementations§
Source§impl AddressType
impl AddressType
pub async fn as_sockaddrs( &self, addresses: &[Prefix], netinfo: &SharedNetInfo, port: u16, ) -> Vec<NetAddr>
Trait Implementations§
Source§impl Debug for AddressType
impl Debug for AddressType
Auto Trait Implementations§
impl Freeze for AddressType
impl RefUnwindSafe for AddressType
impl Send for AddressType
impl Sync for AddressType
impl Unpin for AddressType
impl UnsafeUnpin for AddressType
impl UnwindSafe for AddressType
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