#[non_exhaustive]pub enum WriteError {
OutOfSequence,
OutOfSpace,
}
Expand description
Error type for manipulation of crate::inmemory_write messages.
This is presented externally as an internal server error, but has enough structure to be useful
for debugging through dbg!()
.
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.
Trait Implementations§
Source§impl Debug for WriteError
impl Debug for WriteError
Source§impl Format for WriteError
impl Format for WriteError
Source§impl From<Infallible> for WriteError
impl From<Infallible> for WriteError
Source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
Source§impl RenderableOnMinimal for WriteError
impl RenderableOnMinimal for WriteError
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
Auto Trait Implementations§
impl Freeze for WriteError
impl RefUnwindSafe for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl UnwindSafe for WriteError
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