pub enum WaylandError {
MessageTooShort,
SizeMismatch {
declared: usize,
available: usize,
},
InvalidString,
InvalidArgument,
UnknownObject {
id: u32,
},
UnknownOpcode {
object_id: u32,
opcode: u16,
},
MissingNewId,
}Expand description
Wayland protocol-specific error
Variants§
MessageTooShort
Message is too short to contain a valid header
SizeMismatch
Declared size in header does not match available data
InvalidString
String argument is not properly NUL-terminated
InvalidArgument
Unsupported argument encoding encountered
UnknownObject
Object ID not found in client object map
Fields
§
id: u32UnknownOpcode
Opcode not recognized for the target interface
MissingNewId
A required new_id argument was missing
Trait Implementations§
Source§impl Clone for WaylandError
impl Clone for WaylandError
Source§fn clone(&self) -> WaylandError
fn clone(&self) -> WaylandError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaylandError
impl Debug for WaylandError
Source§impl From<WaylandError> for KernelError
impl From<WaylandError> for KernelError
Source§fn from(e: WaylandError) -> Self
fn from(e: WaylandError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WaylandError
impl PartialEq for WaylandError
impl Copy for WaylandError
impl Eq for WaylandError
impl StructuralPartialEq for WaylandError
Auto Trait Implementations§
impl Freeze for WaylandError
impl RefUnwindSafe for WaylandError
impl Send for WaylandError
impl Sync for WaylandError
impl Unpin for WaylandError
impl UnwindSafe for WaylandError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)