pub enum Layer3Error {
UnsupportedOperation {
operation: &'static str,
},
HandlerFailure {
message: String,
},
InvalidInput {
message: String,
},
}Expand description
Structured error type for Layer 3 handlers.
Variants§
UnsupportedOperation
Unsupported operation invoked through a handler.
HandlerFailure
Handler failed to execute an operation.
InvalidInput
Invalid input for a handler operation.
Implementations§
Source§impl Layer3Error
impl Layer3Error
Sourcepub fn unsupported(operation: &'static str) -> Self
pub fn unsupported(operation: &'static str) -> Self
Create an unsupported-operation error.
Sourcepub fn handler_failure(message: impl Into<String>) -> Self
pub fn handler_failure(message: impl Into<String>) -> Self
Create a handler failure error.
Sourcepub fn invalid_input(message: impl Into<String>) -> Self
pub fn invalid_input(message: impl Into<String>) -> Self
Create an invalid-input error.
Trait Implementations§
Source§impl Debug for Layer3Error
impl Debug for Layer3Error
Source§impl Display for Layer3Error
impl Display for Layer3Error
Source§impl Error for Layer3Error
impl Error for Layer3Error
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<Layer3Error> for AuraError
impl From<Layer3Error> for AuraError
Source§fn from(error: Layer3Error) -> Self
fn from(error: Layer3Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Layer3Error
impl RefUnwindSafe for Layer3Error
impl Send for Layer3Error
impl Sync for Layer3Error
impl Unpin for Layer3Error
impl UnsafeUnpin for Layer3Error
impl UnwindSafe for Layer3Error
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