pub enum AddressService<'a> {
Port(u16),
Name(&'a str),
}Expand description
A numeric port or a service name interpreted by the resolver’s service database. Named services can resolve differently for different transports.
Variants§
Port(u16)
A numeric port.
Name(&'a str)
A service name, such as "http", looked up in the resolver’s service database.
Trait Implementations§
Source§impl<'a> Clone for AddressService<'a>
impl<'a> Clone for AddressService<'a>
impl<'a> Copy for AddressService<'a>
Source§impl<'a> Debug for AddressService<'a>
impl<'a> Debug for AddressService<'a>
impl<'a> Eq for AddressService<'a>
Source§impl<'a> PartialEq for AddressService<'a>
impl<'a> PartialEq for AddressService<'a>
impl<'a> StructuralPartialEq for AddressService<'a>
Auto Trait Implementations§
impl<'a> Freeze for AddressService<'a>
impl<'a> RefUnwindSafe for AddressService<'a>
impl<'a> Send for AddressService<'a>
impl<'a> Sync for AddressService<'a>
impl<'a> Unpin for AddressService<'a>
impl<'a> UnsafeUnpin for AddressService<'a>
impl<'a> UnwindSafe for AddressService<'a>
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