#[non_exhaustive]pub enum ServerStatus {
Starting,
Ready,
Paused,
Unavailable,
Stopping,
Stopped,
}Expand description
Server status.
Returned by Server::status and
Server::status_changed. The server
accepts new items, and network listeners accept connections, only while
the status is Ready.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Starting
No worker has become available yet.
Ready
Workers are available and the server accepts new items.
Paused
The server has been paused with Server::pause.
The server stays paused until Server::resume
is called, even if workers restart or become available.
No worker is available, e.g. all workers are restarting or not ready.
The server becomes ready again once a worker is available.
Stopping
The server is stopping its workers.
Stopped
The server has stopped. This status is final.
Trait Implementations§
Source§impl Clone for ServerStatus
impl Clone for ServerStatus
impl Copy for ServerStatus
Source§impl Debug for ServerStatus
impl Debug for ServerStatus
impl Eq for ServerStatus
Source§impl Hash for ServerStatus
impl Hash for ServerStatus
Source§impl PartialEq for ServerStatus
impl PartialEq for ServerStatus
impl StructuralPartialEq for ServerStatus
Auto Trait Implementations§
impl Freeze for ServerStatus
impl RefUnwindSafe for ServerStatus
impl Send for ServerStatus
impl Sync for ServerStatus
impl Unpin for ServerStatus
impl UnsafeUnpin for ServerStatus
impl UnwindSafe for ServerStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.