Enum diagnostics_message::error::MessageError
source · pub enum MessageError {
InvalidSeverity(SeverityError),
UnrecognizedValue,
ExpectedInteger {
value: String,
found: &'static str,
},
ParseError {
parse_error: ParseError,
},
OutOfBounds,
TagTooLong {
index: usize,
len: usize,
},
TooManyTags,
NotNullTerminated {
terminator: u8,
},
ShortRead {
len: usize,
},
}
Variants§
InvalidSeverity(SeverityError)
UnrecognizedValue
ExpectedInteger
ParseError
Fields
§
parse_error: ParseError
OutOfBounds
TagTooLong
TooManyTags
NotNullTerminated
ShortRead
Trait Implementations§
source§impl Clone for MessageError
impl Clone for MessageError
source§fn clone(&self) -> MessageError
fn clone(&self) -> MessageError
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 MessageError
impl Debug for MessageError
source§impl Display for MessageError
impl Display for MessageError
source§impl Error for MessageError
impl Error for MessageError
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseError> for MessageError
impl From<ParseError> for MessageError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<SeverityError> for MessageError
impl From<SeverityError> for MessageError
source§fn from(source: SeverityError) -> Self
fn from(source: SeverityError) -> Self
Converts to this type from the input type.
source§impl PartialEq<MessageError> for MessageError
impl PartialEq<MessageError> for MessageError
Auto Trait Implementations§
impl RefUnwindSafe for MessageError
impl Send for MessageError
impl Sync for MessageError
impl Unpin for MessageError
impl UnwindSafe for MessageError
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