pub struct Hosted { /* private fields */ }Expand description
A running host. Dropping it releases the service.
Implementations§
Source§impl Hosted
impl Hosted
pub fn record(&self) -> &ServiceRecord
pub fn handoff_requested(&self) -> bool
pub fn inflight(&self) -> usize
Sourcepub fn status(&self) -> ServiceStatus
pub fn status(&self) -> ServiceStatus
Connections, in-flight requests and process resource usage, read now. No polling thread runs for this.
Sourcepub fn wait_released(&self, timeout: Duration) -> bool
pub fn wait_released(&self, timeout: Duration) -> bool
Block until the host has released (clean shutdown or takeover).
pub fn shutdown(&self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Hosted
impl !UnwindSafe for Hosted
impl Freeze for Hosted
impl Send for Hosted
impl Sync for Hosted
impl Unpin for Hosted
impl UnsafeUnpin for Hosted
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