#[repr(u8)]pub enum oscore_msgerr_native_t {
ResultOk = 0,
UpdateOptionWrongLength = 1,
UpdateOptionNotFound = 2,
InternalMessageError = 3,
}
Expand description
Errors out of message operations
As errors for the underlying message may be diverse, this only contains detials for error values of things where coap-message is markedly distinct from msg_native, and thus this crate actually implements anything (that can fail) rather than passing on.
Variants§
ResultOk = 0
UpdateOptionWrongLength = 1
UpdateOptionNotFound = 2
InternalMessageError = 3
Some operation on the underlying MinimalWritableMessage went wrong.
As we do not know the size of the error, and multiple backends could have different errors, all errors returned from methods of the message traits are converted into this value.
Trait Implementations§
Source§impl Debug for oscore_msgerr_native_t
impl Debug for oscore_msgerr_native_t
Source§impl From<Infallible> for oscore_msgerr_native_t
impl From<Infallible> for oscore_msgerr_native_t
Source§fn from(other: Infallible) -> Self
fn from(other: Infallible) -> Self
Converts to this type from the input type.
Source§impl PartialEq for oscore_msgerr_native_t
impl PartialEq for oscore_msgerr_native_t
Source§impl RenderableOnMinimal for oscore_msgerr_native_t
impl RenderableOnMinimal for oscore_msgerr_native_t
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,
msg: &mut M,
) -> Result<(), Self::Error<M::UnionError>>
fn render<M: MinimalWritableMessage>( self, msg: &mut M, ) -> Result<(), Self::Error<M::UnionError>>
Express the error in a CoAP response message Read more
impl StructuralPartialEq for oscore_msgerr_native_t
Auto Trait Implementations§
impl Freeze for oscore_msgerr_native_t
impl RefUnwindSafe for oscore_msgerr_native_t
impl Send for oscore_msgerr_native_t
impl Sync for oscore_msgerr_native_t
impl Unpin for oscore_msgerr_native_t
impl UnwindSafe for oscore_msgerr_native_t
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