#[non_exhaustive]pub enum ControllerError {
NotConfigured,
Full,
Closed,
AlreadyStarted,
}Available on crate feature
controller only.Expand description
Error returned by controller submission methods.
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.
NotConfigured
The supervisor was built without a controller.
Enable the controller feature and configure the supervisor with with_controller(...) before using controller submission methods.
Full
The controller intake queue is full.
Returned only by try_submit.
Use async submit or submit_and_watch if the caller should wait for intake capacity instead of failing fast.
Closed
The controller intake channel is closed.
This usually means the controller loop has stopped or the supervisor is shutting down.
AlreadyStarted
The controller loop was started more than once.
This is an internal lifecycle guard. Normal submission APIs do not return this variant.
Implementations§
Trait Implementations§
Source§impl Clone for ControllerError
impl Clone for ControllerError
Source§fn clone(&self) -> ControllerError
fn clone(&self) -> ControllerError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ControllerError
Source§impl Debug for ControllerError
impl Debug for ControllerError
Source§impl Display for ControllerError
impl Display for ControllerError
impl Eq for ControllerError
Source§impl Error for ControllerError
impl Error for ControllerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ControllerError> for Error
impl From<ControllerError> for Error
Source§fn from(source: ControllerError) -> Self
fn from(source: ControllerError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ControllerError
impl PartialEq for ControllerError
impl StructuralPartialEq for ControllerError
Auto Trait Implementations§
impl Freeze for ControllerError
impl RefUnwindSafe for ControllerError
impl Send for ControllerError
impl Sync for ControllerError
impl Unpin for ControllerError
impl UnsafeUnpin for ControllerError
impl UnwindSafe for ControllerError
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