pub struct ServeHandle { /* private fields */ }Implementations§
Source§impl ServeHandle
impl ServeHandle
pub fn shutdown(&self)
pub async fn drain(self)
pub fn abort(&self)
pub fn drain_timeout(&self) -> Duration
Sourcepub fn subscribe_done(&self) -> Receiver<bool>
pub fn subscribe_done(&self) -> Receiver<bool>
Subscribe to the serve-loop-done signal.
The returned receiver resolves (changes to true) once the serve task
has fully exited, including the drain phase.
Auto Trait Implementations§
impl Freeze for ServeHandle
impl RefUnwindSafe for ServeHandle
impl Send for ServeHandle
impl Sync for ServeHandle
impl Unpin for ServeHandle
impl UnsafeUnpin for ServeHandle
impl UnwindSafe for ServeHandle
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