#[non_exhaustive]pub enum ConfirmOperationsError {
NotAList,
TooMany {
count: usize,
},
DuplicateOperation {
operation: String,
},
UnknownOperation {
operation: String,
},
}Expand description
Why a ModuleManifest::confirm_operations list is dropped.
A dropped list leaves the manifest as if the module had not declared one; it never refuses HELLO.
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.
NotAList
The wire value is not an array of strings.
TooMany
The list holds more than MAX_CONFIRM_OPERATIONS names.
DuplicateOperation
The same name appears more than once.
UnknownOperation
The name is not a management operation declared by the same manifest.
Trait Implementations§
Source§impl Clone for ConfirmOperationsError
impl Clone for ConfirmOperationsError
Source§impl Debug for ConfirmOperationsError
impl Debug for ConfirmOperationsError
Source§impl Display for ConfirmOperationsError
impl Display for ConfirmOperationsError
impl Eq for ConfirmOperationsError
Source§impl Error for ConfirmOperationsError
impl Error for ConfirmOperationsError
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 ConfirmOperationsError
impl PartialEq for ConfirmOperationsError
impl StructuralPartialEq for ConfirmOperationsError
Auto Trait Implementations§
impl Freeze for ConfirmOperationsError
impl RefUnwindSafe for ConfirmOperationsError
impl Send for ConfirmOperationsError
impl Sync for ConfirmOperationsError
impl Unpin for ConfirmOperationsError
impl UnsafeUnpin for ConfirmOperationsError
impl UnwindSafe for ConfirmOperationsError
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