pub enum BMessageError {
MissingField(&'static str),
UnknownStatus(String),
UnknownType(String),
UnterminatedSection(&'static str),
}Expand description
bMessage parse errors — missing required fields, unrecognised STATUS/TYPE values, and unterminated sections.
Variants§
MissingField(&'static str)
A required top-level field was absent.
UnknownStatus(String)
The STATUS value was neither READ nor UNREAD.
UnknownType(String)
The TYPE value was not SMS_GSM.
UnterminatedSection(&'static str)
A BEGIN:X was not followed by a matching END:X before EOF.
Trait Implementations§
Source§impl Debug for BMessageError
impl Debug for BMessageError
Source§impl Display for BMessageError
impl Display for BMessageError
impl Eq for BMessageError
Source§impl Error for BMessageError
impl Error for BMessageError
1.30.0 · 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<BMessageError> for MapError
impl From<BMessageError> for MapError
Source§fn from(source: BMessageError) -> Self
fn from(source: BMessageError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BMessageError
impl PartialEq for BMessageError
Source§fn eq(&self, other: &BMessageError) -> bool
fn eq(&self, other: &BMessageError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BMessageError
Auto Trait Implementations§
impl Freeze for BMessageError
impl RefUnwindSafe for BMessageError
impl Send for BMessageError
impl Sync for BMessageError
impl Unpin for BMessageError
impl UnsafeUnpin for BMessageError
impl UnwindSafe for BMessageError
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