pub struct ServiceRef { /* private fields */ }
Expand description
Struct to hold a published service, which keeps the service alive while a reference to it is held. When dropped the Service will be removed and any associated resources deallocated.
This should be created via a Service
or a
ServiceResolver
. For a browse
operation the ServiceRef
is held by the ServiceBrowser
created by a
ServiceBrowserBuilder
.
Implementations§
Trait Implementations§
Source§impl Debug for ServiceRef
impl Debug for ServiceRef
Auto Trait Implementations§
impl Freeze for ServiceRef
impl !RefUnwindSafe for ServiceRef
impl Send for ServiceRef
impl Sync for ServiceRef
impl Unpin for ServiceRef
impl !UnwindSafe for ServiceRef
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