pub struct ServiceLookup { /* private fields */ }Expand description
Service name lookup table
Implementations§
Source§impl ServiceLookup
impl ServiceLookup
pub fn from_embedded() -> Result<Self>
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create with common well-known services
Sourcepub fn add_service(&mut self, port: u16, protocol: Protocol, name: &str)
pub fn add_service(&mut self, port: u16, protocol: Protocol, name: &str)
Add a service mapping
Trait Implementations§
Source§impl Clone for ServiceLookup
impl Clone for ServiceLookup
Auto Trait Implementations§
impl Freeze for ServiceLookup
impl RefUnwindSafe for ServiceLookup
impl Send for ServiceLookup
impl Sync for ServiceLookup
impl Unpin for ServiceLookup
impl UnsafeUnpin for ServiceLookup
impl UnwindSafe for ServiceLookup
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