pub struct ServiceHandle { /* private fields */ }Expand description
Handle for managing a registered service
Implementations§
Source§impl ServiceHandle
impl ServiceHandle
Sourcepub async fn unregister(self) -> Result<()>
pub async fn unregister(self) -> Result<()>
Unregister the service
Sourcepub fn service(&self) -> &ServiceInfo
pub fn service(&self) -> &ServiceInfo
Get service information
Auto Trait Implementations§
impl Freeze for ServiceHandle
impl !RefUnwindSafe for ServiceHandle
impl Send for ServiceHandle
impl Sync for ServiceHandle
impl Unpin for ServiceHandle
impl !UnwindSafe for ServiceHandle
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