x11rb::protocol::xkb

Struct Action

pub struct Action(/* private fields */);

Implementations§

§

impl Action

pub fn as_noaction(&self) -> SANoAction

pub fn as_setmods(&self) -> SASetMods

pub fn as_latchmods(&self) -> SASetMods

pub fn as_lockmods(&self) -> SASetMods

pub fn as_setgroup(&self) -> SASetGroup

pub fn as_latchgroup(&self) -> SASetGroup

pub fn as_lockgroup(&self) -> SASetGroup

pub fn as_moveptr(&self) -> SAMovePtr

pub fn as_ptrbtn(&self) -> SAPtrBtn

pub fn as_lockptrbtn(&self) -> SALockPtrBtn

pub fn as_setptrdflt(&self) -> SASetPtrDflt

pub fn as_isolock(&self) -> SAIsoLock

pub fn as_terminate(&self) -> SATerminate

pub fn as_switchscreen(&self) -> SASwitchScreen

pub fn as_setcontrols(&self) -> SASetControls

pub fn as_lockcontrols(&self) -> SASetControls

pub fn as_message(&self) -> SAActionMessage

pub fn as_redirect(&self) -> SARedirectKey

pub fn as_devbtn(&self) -> SADeviceBtn

pub fn as_lockdevbtn(&self) -> SALockDeviceBtn

pub fn as_devval(&self) -> SADeviceValuator

pub fn as_type(&self) -> SAType

Trait Implementations§

§

impl Clone for Action

§

fn clone(&self) -> Action

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Action

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<SAActionMessage> for Action

§

fn from(message: SAActionMessage) -> Action

Converts to this type from the input type.
§

impl From<SADeviceBtn> for Action

§

fn from(devbtn: SADeviceBtn) -> Action

Converts to this type from the input type.
§

impl From<SADeviceValuator> for Action

§

fn from(devval: SADeviceValuator) -> Action

Converts to this type from the input type.
§

impl From<SAIsoLock> for Action

§

fn from(isolock: SAIsoLock) -> Action

Converts to this type from the input type.
§

impl From<SALockDeviceBtn> for Action

§

fn from(lockdevbtn: SALockDeviceBtn) -> Action

Converts to this type from the input type.
§

impl From<SALockPtrBtn> for Action

§

fn from(lockptrbtn: SALockPtrBtn) -> Action

Converts to this type from the input type.
§

impl From<SAMovePtr> for Action

§

fn from(moveptr: SAMovePtr) -> Action

Converts to this type from the input type.
§

impl From<SANoAction> for Action

§

fn from(noaction: SANoAction) -> Action

Converts to this type from the input type.
§

impl From<SAPtrBtn> for Action

§

fn from(ptrbtn: SAPtrBtn) -> Action

Converts to this type from the input type.
§

impl From<SARedirectKey> for Action

§

fn from(redirect: SARedirectKey) -> Action

Converts to this type from the input type.
§

impl From<SASetControls> for Action

§

fn from(setcontrols: SASetControls) -> Action

Converts to this type from the input type.
§

impl From<SASetGroup> for Action

§

fn from(setgroup: SASetGroup) -> Action

Converts to this type from the input type.
§

impl From<SASetMods> for Action

§

fn from(setmods: SASetMods) -> Action

Converts to this type from the input type.
§

impl From<SASetPtrDflt> for Action

§

fn from(setptrdflt: SASetPtrDflt) -> Action

Converts to this type from the input type.
§

impl From<SASwitchScreen> for Action

§

fn from(switchscreen: SASwitchScreen) -> Action

Converts to this type from the input type.
§

impl From<SATerminate> for Action

§

fn from(terminate: SATerminate) -> Action

Converts to this type from the input type.
§

impl From<SAType> for Action

§

fn from(type_: SAType) -> Action

Converts to this type from the input type.
§

impl Serialize for Action

§

type Bytes = [u8; 8]

The value returned by serialize. Read more
§

fn serialize(&self) -> [u8; 8]

Serialize this value into X11 raw bytes.
§

fn serialize_into(&self, bytes: &mut Vec<u8>)

Serialize this value into X11 raw bytes, appending the result into bytes. Read more
§

impl TryParse for Action

§

fn try_parse(value: &[u8]) -> Result<(Action, &[u8]), ParseError>

Try to parse the given values into an instance of this type. Read more
§

impl Copy for Action

Auto Trait Implementations§

§

impl Freeze for Action

§

impl RefUnwindSafe for Action

§

impl Send for Action

§

impl Sync for Action

§

impl Unpin for Action

§

impl UnwindSafe for Action

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> TryParseFd for T
where T: TryParse,

§

fn try_parse_fd<'a>( value: &'a [u8], _: &mut Vec<OwnedFd>, ) -> Result<(T, &'a [u8]), ParseError>

Try to parse the given values into an instance of this type. Read more