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 ControlServerwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Capability>: Freeze,
*const ArcInner<TreeNode> is !null: Freeze,
PhantomData<ArcInner<TreeNode>>: Freeze,
*const Header is !null: Freeze,
PhantomData<Result<ControlExit, ServerError>>: Freeze,
impl Move for ControlServer
impl RefUnwindSafe for ControlServerwhere
CancellationToken: RefUnwindSafe,
JoinHandle<Result<ControlExit, ServerError>>: RefUnwindSafe,
impl Send for ControlServer
impl Sync for ControlServer
impl Unpin for ControlServerwhere
*const u8 is !null: Unpin,
Arc<TreeNode>: Unpin,
JoinHandle<Result<ControlExit, ServerError>>: Unpin,
impl UnsafeUnpin for ControlServerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Capability>: UnsafeUnpin,
*const ArcInner<TreeNode> is !null: UnsafeUnpin,
PhantomData<ArcInner<TreeNode>>: UnsafeUnpin,
*const Header is !null: UnsafeUnpin,
PhantomData<Result<ControlExit, ServerError>>: UnsafeUnpin,
impl UnwindSafe for ControlServerwhere
RawVecInner: UnwindSafe,
CancellationToken: UnwindSafe,
JoinHandle<Result<ControlExit, ServerError>>: UnwindSafe,
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