pub enum UriParsingError {
Unknown,
NotACoapScheme(String),
ContainsNullByte(NulError),
}
Variants§
Unknown
Unknown error inside of libcoap
NotACoapScheme(String)
URI does not have a valid scheme for libcoap (coap, coaps, coap+tcp, coaps+tcp, http, https).
ContainsNullByte(NulError)
Provided URI contains a null byte.
Trait Implementations§
Source§impl Clone for UriParsingError
impl Clone for UriParsingError
Source§fn clone(&self) -> UriParsingError
fn clone(&self) -> UriParsingError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UriParsingError
impl Debug for UriParsingError
Source§impl Display for UriParsingError
impl Display for UriParsingError
Source§impl Error for UriParsingError
impl Error for UriParsingError
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<NulError> for UriParsingError
impl From<NulError> for UriParsingError
Source§impl From<UriParsingError> for MessageConversionError
impl From<UriParsingError> for MessageConversionError
Source§fn from(v: UriParsingError) -> Self
fn from(v: UriParsingError) -> Self
Converts to this type from the input type.
Source§impl From<UriParsingError> for OptionValueError
impl From<UriParsingError> for OptionValueError
Source§fn from(source: UriParsingError) -> Self
fn from(source: UriParsingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UriParsingError
impl PartialEq for UriParsingError
impl Eq for UriParsingError
impl StructuralPartialEq for UriParsingError
Auto Trait Implementations§
impl Freeze for UriParsingError
impl RefUnwindSafe for UriParsingError
impl Send for UriParsingError
impl Sync for UriParsingError
impl Unpin for UriParsingError
impl UnwindSafe for UriParsingError
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