Enum Request

Source
pub enum Request {
Show 55 variants AuthNext {}, AuthNg {}, AuthReply {}, AuthRequired {}, AuthSetup {}, Close { input_method_id: u16, }, CloseReply { input_method_id: u16, }, Commit { input_method_id: u16, input_context_id: u16, data: CommitData, }, Connect { endian: Endian, client_major_protocol_version: u16, client_minor_protocol_version: u16, client_auth_protocol_names: Vec<String>, }, ConnectReply { server_major_protocol_version: u16, server_minor_protocol_version: u16, }, CreateIc { input_method_id: u16, ic_attributes: Vec<Attribute>, }, CreateIcReply { input_method_id: u16, input_context_id: u16, }, DestroyIc { input_method_id: u16, input_context_id: u16, }, DestroyIcReply { input_method_id: u16, input_context_id: u16, }, Disconnect {}, DisconnectReply {}, EncodingNegotiation { input_method_id: u16, encodings: Vec<String>, encoding_infos: Vec<String>, }, EncodingNegotiationReply { input_method_id: u16, category: u16, index: i16, }, Error { input_method_id: u16, input_context_id: u16, flag: ErrorFlag, code: ErrorCode, detail: String, }, ForwardEvent { input_method_id: u16, input_context_id: u16, flag: ForwardEventFlag, serial_number: u16, xev: XEvent, }, Geometry { input_method_id: u16, input_context_id: u16, }, GetIcValues { input_method_id: u16, input_context_id: u16, ic_attributes: Vec<u16>, }, GetIcValuesReply { input_method_id: u16, input_context_id: u16, ic_attributes: Vec<Attribute>, }, GetImValues { input_method_id: u16, im_attributes: Vec<u16>, }, GetImValuesReply { input_method_id: u16, im_attributes: Vec<Attribute>, }, Open { locale: String, }, OpenReply { input_method_id: u16, im_attrs: Vec<Attr>, ic_attrs: Vec<Attr>, }, PreeditCaret { input_method_id: u16, input_context_id: u16, position: i32, direction: CaretDirection, style: CaretStyle, }, PreeditCaretReply { input_method_id: u16, input_context_id: u16, position: i32, }, PreeditDone { input_method_id: u16, input_context_id: u16, }, PreeditDraw { input_method_id: u16, input_context_id: u16, caret: i32, chg_first: i32, chg_length: i32, status: PreeditDrawStatus, preedit_string: Vec<u8>, feedbacks: Vec<Feedback>, }, PreeditStart { input_method_id: u16, input_context_id: u16, }, PreeditStartReply { input_method_id: u16, input_context_id: u16, return_value: i32, }, PreeditState { input_method_id: u16, input_context_id: u16, state: PreeditStateFlag, }, QueryExtension { input_method_id: u16, extensions: Vec<String>, }, QueryExtensionReply { input_method_id: u16, extensions: Vec<Extension>, }, RegisterTriggerKeys { input_method_id: u16, on_keys: Vec<TriggerKey>, off_keys: Vec<TriggerKey>, }, ResetIc { input_method_id: u16, input_context_id: u16, }, ResetIcReply { input_method_id: u16, input_context_id: u16, preedit_string: Vec<u8>, }, SetEventMask { input_method_id: u16, input_context_id: u16, forward_event_mask: u32, synchronous_event_mask: u32, }, SetIcFocus { input_method_id: u16, input_context_id: u16, }, SetIcValues { input_method_id: u16, input_context_id: u16, ic_attributes: Vec<Attribute>, }, SetIcValuesReply { input_method_id: u16, input_context_id: u16, }, SetImValues { input_method_id: u16, attributes: Vec<Attribute>, }, SetImValuesReply { input_method_id: u16, }, StatusDone { input_method_id: u16, input_context_id: u16, }, StatusDraw { input_method_id: u16, input_context_id: u16, content: StatusContent, }, StatusStart { input_method_id: u16, input_context_id: u16, }, StrConversion {}, StrConversionReply {}, Sync { input_method_id: u16, input_context_id: u16, }, SyncReply { input_method_id: u16, input_context_id: u16, }, TriggerNotify { input_method_id: u16, input_context_id: u16, flag: TriggerNotifyFlag, index: u32, event_mask: u32, }, TriggerNotifyReply { input_method_id: u16, input_context_id: u16, }, UnsetIcFocus { input_method_id: u16, input_context_id: u16, },
}

Variants§

§

AuthNext

§

AuthNg

§

AuthReply

§

AuthRequired

§

AuthSetup

§

Close

Fields

§input_method_id: u16
§

CloseReply

Fields

§input_method_id: u16
§

Commit

Fields

§input_method_id: u16
§input_context_id: u16
§

Connect

Fields

§endian: Endian
§client_major_protocol_version: u16
§client_minor_protocol_version: u16
§client_auth_protocol_names: Vec<String>
§

ConnectReply

Fields

§server_major_protocol_version: u16
§server_minor_protocol_version: u16
§

CreateIc

Fields

§input_method_id: u16
§ic_attributes: Vec<Attribute>
§

CreateIcReply

Fields

§input_method_id: u16
§input_context_id: u16
§

DestroyIc

Fields

§input_method_id: u16
§input_context_id: u16
§

DestroyIcReply

Fields

§input_method_id: u16
§input_context_id: u16
§

Disconnect

§

DisconnectReply

§

EncodingNegotiation

Fields

§input_method_id: u16
§encodings: Vec<String>
§encoding_infos: Vec<String>
§

EncodingNegotiationReply

Fields

§input_method_id: u16
§category: u16
§index: i16
§

Error

Fields

§input_method_id: u16
§input_context_id: u16
§detail: String
§

ForwardEvent

Fields

§input_method_id: u16
§input_context_id: u16
§serial_number: u16
§

Geometry

Fields

§input_method_id: u16
§input_context_id: u16
§

GetIcValues

Fields

§input_method_id: u16
§input_context_id: u16
§ic_attributes: Vec<u16>
§

GetIcValuesReply

Fields

§input_method_id: u16
§input_context_id: u16
§ic_attributes: Vec<Attribute>
§

GetImValues

Fields

§input_method_id: u16
§im_attributes: Vec<u16>
§

GetImValuesReply

Fields

§input_method_id: u16
§im_attributes: Vec<Attribute>
§

Open

Fields

§locale: String
§

OpenReply

Fields

§input_method_id: u16
§im_attrs: Vec<Attr>
§ic_attrs: Vec<Attr>
§

PreeditCaret

Fields

§input_method_id: u16
§input_context_id: u16
§position: i32
§direction: CaretDirection
§

PreeditCaretReply

Fields

§input_method_id: u16
§input_context_id: u16
§position: i32
§

PreeditDone

Fields

§input_method_id: u16
§input_context_id: u16
§

PreeditDraw

Fields

§input_method_id: u16
§input_context_id: u16
§caret: i32
§chg_first: i32
§chg_length: i32
§preedit_string: Vec<u8>
§feedbacks: Vec<Feedback>
§

PreeditStart

Fields

§input_method_id: u16
§input_context_id: u16
§

PreeditStartReply

Fields

§input_method_id: u16
§input_context_id: u16
§return_value: i32
§

PreeditState

Fields

§input_method_id: u16
§input_context_id: u16
§

QueryExtension

Fields

§input_method_id: u16
§extensions: Vec<String>
§

QueryExtensionReply

Fields

§input_method_id: u16
§extensions: Vec<Extension>
§

RegisterTriggerKeys

Fields

§input_method_id: u16
§on_keys: Vec<TriggerKey>
§off_keys: Vec<TriggerKey>
§

ResetIc

Fields

§input_method_id: u16
§input_context_id: u16
§

ResetIcReply

Fields

§input_method_id: u16
§input_context_id: u16
§preedit_string: Vec<u8>
§

SetEventMask

Fields

§input_method_id: u16
§input_context_id: u16
§forward_event_mask: u32
§synchronous_event_mask: u32
§

SetIcFocus

Fields

§input_method_id: u16
§input_context_id: u16
§

SetIcValues

Fields

§input_method_id: u16
§input_context_id: u16
§ic_attributes: Vec<Attribute>
§

SetIcValuesReply

Fields

§input_method_id: u16
§input_context_id: u16
§

SetImValues

Fields

§input_method_id: u16
§attributes: Vec<Attribute>
§

SetImValuesReply

Fields

§input_method_id: u16
§

StatusDone

Fields

§input_method_id: u16
§input_context_id: u16
§

StatusDraw

Fields

§input_method_id: u16
§input_context_id: u16
§

StatusStart

Fields

§input_method_id: u16
§input_context_id: u16
§

StrConversion

§

StrConversionReply

§

Sync

Fields

§input_method_id: u16
§input_context_id: u16
§

SyncReply

Fields

§input_method_id: u16
§input_context_id: u16
§

TriggerNotify

Fields

§input_method_id: u16
§input_context_id: u16
§index: u32
§event_mask: u32
§

TriggerNotifyReply

Fields

§input_method_id: u16
§input_context_id: u16
§

UnsetIcFocus

Fields

§input_method_id: u16
§input_context_id: u16

Implementations§

Source§

impl Request

Source

pub fn name(&self) -> &'static str

Trait Implementations§

Source§

impl Clone for Request

Source§

fn clone(&self) -> Request

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Request

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Request

Source§

fn eq(&self, other: &Request) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl XimRead for Request

Source§

fn read(reader: &mut Reader<'_>) -> Result<Self, ReadError>

Source§

impl XimWrite for Request

Source§

fn write(&self, writer: &mut Writer<'_>)

Source§

fn size(&self) -> usize

byte size of format
Source§

impl Eq for Request

Source§

impl StructuralPartialEq for Request

Auto Trait Implementations§

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.