pub enum ControllerError {
NotFound(String),
Invalid,
Unsupported(String),
InternalError(String),
}
Expand description
Error that can be returned by a controller provider.
Variants§
NotFound(String)
Controller was not found.
The controller identifier is provided as argument.
Invalid
Invalid controller.
The controller was found, but could not be interpreted as a valid controller.
Unsupported(String)
Unsupported controller identifier.
InternalError(String)
Custom error from the controller provider.
Trait Implementations§
Source§impl From<ControllerError> for ProofValidationError
impl From<ControllerError> for ProofValidationError
Source§fn from(value: ControllerError) -> Self
fn from(value: ControllerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ControllerError
impl RefUnwindSafe for ControllerError
impl Send for ControllerError
impl Sync for ControllerError
impl Unpin 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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T
.