pub struct ServiceRoute { /* private fields */ }Available on crate features
alloc or no-atomic or std only.Expand description
Routing metadata for a registered service.
Implementations§
Source§impl ServiceRoute
impl ServiceRoute
Sourcepub fn service_type(&self) -> &Name
pub fn service_type(&self) -> &Name
The DNS-SD service-type (PTR owner), e.g. _ipp._tcp.local..
Sourcepub const fn handle(&self) -> ServiceHandle
pub const fn handle(&self) -> ServiceHandle
The handle assigned to this service.
Sourcepub fn aaaa_addrs(&self) -> &[Ipv6Addr]
pub fn aaaa_addrs(&self) -> &[Ipv6Addr]
Advertised IPv6 addresses for this service (AAAA records).
Sourcepub fn aaaa_scopes(&self) -> &[u32]
pub fn aaaa_scopes(&self) -> &[u32]
Per-AAAA interface scope ids (parallel to Self::aaaa_addrs).
A scope of 0 matches any receiving interface; a non-zero scope
matches only the same interface_index passed to
Endpoint::handle.
Trait Implementations§
Source§impl Clone for ServiceRoute
impl Clone for ServiceRoute
Source§fn clone(&self) -> ServiceRoute
fn clone(&self) -> ServiceRoute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServiceRoute
impl RefUnwindSafe for ServiceRoute
impl Send for ServiceRoute
impl Sync for ServiceRoute
impl Unpin for ServiceRoute
impl UnsafeUnpin for ServiceRoute
impl UnwindSafe for ServiceRoute
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