pub struct ControlServer { /* private fields */ }Expand description
Explicit stop waits for all connection tasks and inode cleanup. Drop merely requests that cleanup; it never closes Agents or shuts down the catalog.
Implementations§
Source§impl ControlServer
impl ControlServer
pub async fn bind( config: ControlConfig, service: HostService, ) -> Result<Self, ServerError>
pub fn welcome(&self) -> &Welcome
pub fn stopped_by_administration(&self) -> bool
Sourcepub async fn wait(&mut self) -> Result<(), ServerError>
pub async fn wait(&mut self) -> Result<(), ServerError>
Cancellation-safe: abandoning this wait does not discard the task handle.
pub async fn stop(&mut self) -> Result<(), ServerError>
Trait Implementations§
Source§impl Drop for ControlServer
impl Drop for ControlServer
Auto Trait Implementations§
impl Forget for ControlServer
impl Freeze for ControlServer
impl Move for ControlServer
impl RefUnwindSafe for ControlServer
impl Send for ControlServer
impl Sync for ControlServer
impl Unpin for ControlServer
impl UnsafeUnpin for ControlServer
impl UnwindSafe for ControlServer
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