Enum libcoap_rs::error::OptionValueError
source · pub enum OptionValueError {
TooShort,
TooLong,
StringConversion(FromUtf8Error),
IllegalValue,
}
Variants
TooShort
Provided value for option is too short.
TooLong
Provided value for option is too long.
StringConversion(FromUtf8Error)
A string value could not be converted to UTF-8.
IllegalValue
Option has an illegal value.
Trait Implementations
sourceimpl Clone for OptionValueError
impl Clone for OptionValueError
sourcefn clone(&self) -> OptionValueError
fn clone(&self) -> OptionValueError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OptionValueError
impl Debug for OptionValueError
sourceimpl Display for OptionValueError
impl Display for OptionValueError
sourceimpl Error for OptionValueError
impl Error for OptionValueError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<FromUtf8Error> for OptionValueError
impl From<FromUtf8Error> for OptionValueError
sourcefn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<OptionValueError> for OptionValueError
impl PartialEq<OptionValueError> for OptionValueError
sourcefn eq(&self, other: &OptionValueError) -> bool
fn eq(&self, other: &OptionValueError) -> bool
impl Eq for OptionValueError
impl StructuralEq for OptionValueError
impl StructuralPartialEq for OptionValueError
Auto Trait Implementations
impl RefUnwindSafe for OptionValueError
impl Send for OptionValueError
impl Sync for OptionValueError
impl Unpin for OptionValueError
impl UnwindSafe for OptionValueError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more