pub struct Error {
pub code: u8,
pub problem: Problem,
}Expand description
CoAP handler error.
Fields§
§code: u8CoAP response code.
problem: ProblemMachine-readable problem.
Trait Implementations§
impl Copy for Error
impl Eq for Error
Source§impl From<!> for Error
impl From<!> for Error
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Converts to this type from the input type.
Source§impl RenderableOnMinimal for Error
impl RenderableOnMinimal for Error
Source§type Error<IE: RenderableOnMinimal + Debug> = IE
type Error<IE: RenderableOnMinimal + Debug> = IE
Error to return when even the error rendering is unsuccessful (a “double error”). Read more
Source§fn render<M: MinimalWritableMessage>(
self,
message: &mut M,
) -> Result<(), Self::Error<M::UnionError>>
fn render<M: MinimalWritableMessage>( self, message: &mut M, ) -> Result<(), Self::Error<M::UnionError>>
Express the error in a CoAP response message Read more
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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