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
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more