pub enum Argument {
Int(i32),
Uint(u32),
Fixed(i32),
String(Vec<u8>),
Object(u32),
NewId(u32),
Array(Vec<u8>),
Fd(i32),
}Expand description
Typed argument in a Wayland message.
Variants§
Int(i32)
Signed 32-bit integer
Uint(u32)
Unsigned 32-bit integer
Fixed(i32)
Fixed-point number (24.8 format, stored as i32)
String(Vec<u8>)
Length-prefixed, NUL-terminated UTF-8 string
Object(u32)
Reference to an existing object (0 = null)
NewId(u32)
Newly allocated object ID
Array(Vec<u8>)
Length-prefixed byte array
Fd(i32)
File descriptor (out-of-band, stored as i32 index)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnwindSafe for Argument
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)