Enum wayland_commons::wire::MessageParseError
source · [−]pub enum MessageParseError {
MissingFD,
MissingData,
Malformed,
}
Expand description
Error generated when trying to deserialize a message from buffers
Variants
MissingFD
The message references a FD but the buffer FD is empty
MissingData
More data is needed to deserialize the message
Malformed
The message is malformed and cannot be parsed
Trait Implementations
sourceimpl Clone for MessageParseError
impl Clone for MessageParseError
sourcefn clone(&self) -> MessageParseError
fn clone(&self) -> MessageParseError
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 more
sourceimpl Debug for MessageParseError
impl Debug for MessageParseError
sourceimpl Display for MessageParseError
impl Display for MessageParseError
sourceimpl Error for MessageParseError
impl Error for MessageParseError
1.30.0 · 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()
Auto Trait Implementations
impl RefUnwindSafe for MessageParseError
impl Send for MessageParseError
impl Sync for MessageParseError
impl Unpin for MessageParseError
impl UnwindSafe for MessageParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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