#[non_exhaustive]pub enum ShutdownOptionsError {
ZeroTotalTimeout,
FinishGraceNotLessThanTotal,
TotalTimeoutOutOfRange,
}Expand description
Validation errors for ShutdownOptions.
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.
ZeroTotalTimeout
The total shutdown timeout must be greater than zero.
FinishGraceNotLessThanTotal
Finish grace must leave time inside the total shutdown timeout.
TotalTimeoutOutOfRange
The timeout cannot be represented by the monotonic clock.
Trait Implementations§
Source§impl Clone for ShutdownOptionsError
impl Clone for ShutdownOptionsError
Source§fn clone(&self) -> ShutdownOptionsError
fn clone(&self) -> ShutdownOptionsError
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 ShutdownOptionsError
Source§impl Debug for ShutdownOptionsError
impl Debug for ShutdownOptionsError
Source§impl Display for ShutdownOptionsError
impl Display for ShutdownOptionsError
impl Eq for ShutdownOptionsError
Source§impl Error for ShutdownOptionsError
impl Error for ShutdownOptionsError
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 PartialEq for ShutdownOptionsError
impl PartialEq for ShutdownOptionsError
impl StructuralPartialEq for ShutdownOptionsError
Auto Trait Implementations§
impl Freeze for ShutdownOptionsError
impl RefUnwindSafe for ShutdownOptionsError
impl Send for ShutdownOptionsError
impl Sync for ShutdownOptionsError
impl Unpin for ShutdownOptionsError
impl UnsafeUnpin for ShutdownOptionsError
impl UnwindSafe for ShutdownOptionsError
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§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.