Enum wayland_commons::wire::Argument [−][src]
pub enum Argument {
Int(i32),
Uint(u32),
Fixed(i32),
Str(CString),
Object(u32),
NewId(u32),
Array(Vec<u8>),
Fd(RawFd),
}Enum of possible argument as recognized by the wire, including values
Variants
Int(i32)i32
Uint(u32)u32
Fixed(i32)fixed point, 1/256 precision
Str(CString)CString
Object(u32)id of a wayland object
NewId(u32)id of a newly created wayland object
Array(Vec<u8>)Vec
Fd(RawFd)RawFd
Methods
impl Argument[src]
impl Argumentpub fn get_type(&self) -> ArgumentType[src]
pub fn get_type(&self) -> ArgumentTypeRetrieve the type of a given argument isntance
Trait Implementations
impl Clone for Argument[src]
impl Clone for Argumentfn clone(&self) -> Argument[src]
fn clone(&self) -> ArgumentReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Argument[src]
impl PartialEq for Argumentfn eq(&self, other: &Argument) -> bool[src]
fn eq(&self, other: &Argument) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Argument) -> bool[src]
fn ne(&self, other: &Argument) -> boolThis method tests for !=.
impl Debug for Argument[src]
impl Debug for Argument