Struct x11rb::protocol::xkb::SetNamesRequest
source · pub struct SetNamesRequest<'input> {Show 14 fields
pub device_spec: u16,
pub virtual_mods: VMod,
pub first_type: u8,
pub n_types: u8,
pub first_kt_levelt: u8,
pub n_kt_levels: u8,
pub indicators: u32,
pub group_names: SetOfGroup,
pub n_radio_groups: u8,
pub first_key: u8,
pub n_keys: u8,
pub n_key_aliases: u8,
pub total_kt_level_names: u16,
pub values: Cow<'input, SetNamesAux>,
}Fields
device_spec: u16virtual_mods: VModfirst_type: u8n_types: u8first_kt_levelt: u8n_kt_levels: u8indicators: u32group_names: SetOfGroupn_radio_groups: u8first_key: u8n_keys: u8n_key_aliases: u8total_kt_level_names: u16values: Cow<'input, SetNamesAux>Implementations
sourceimpl<'input> SetNamesRequest<'input>
impl<'input> SetNamesRequest<'input>
sourcepub fn serialize(
self,
major_opcode: u8
) -> (Vec<Cow<'input, [u8]>, Global>, Vec<RawFdContainer, Global>)
pub fn serialize(
self,
major_opcode: u8
) -> (Vec<Cow<'input, [u8]>, Global>, Vec<RawFdContainer, Global>)
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<SetNamesRequest<'input>, ParseError>
pub fn try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<SetNamesRequest<'input>, ParseError>
Parse this request given its header, its body, and any fds that go along with it
sourcepub fn into_owned(self) -> SetNamesRequest<'static>
pub fn into_owned(self) -> SetNamesRequest<'static>
Clone all borrowed data in this SetNamesRequest.
Trait Implementations
sourceimpl<'input> Clone for SetNamesRequest<'input>
impl<'input> Clone for SetNamesRequest<'input>
sourcefn clone(&self) -> SetNamesRequest<'input>
fn clone(&self) -> SetNamesRequest<'input>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<'input> Debug for SetNamesRequest<'input>
impl<'input> Debug for SetNamesRequest<'input>
sourceimpl<'input> Default for SetNamesRequest<'input>
impl<'input> Default for SetNamesRequest<'input>
sourcefn default() -> SetNamesRequest<'input>
fn default() -> SetNamesRequest<'input>
Returns the “default value” for a type. Read more
sourceimpl<'input> Hash for SetNamesRequest<'input>
impl<'input> Hash for SetNamesRequest<'input>
sourceimpl<'input> Ord for SetNamesRequest<'input>
impl<'input> Ord for SetNamesRequest<'input>
sourcefn cmp(&self, other: &SetNamesRequest<'input>) -> Ordering
fn cmp(&self, other: &SetNamesRequest<'input>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<'input> PartialEq<SetNamesRequest<'input>> for SetNamesRequest<'input>
impl<'input> PartialEq<SetNamesRequest<'input>> for SetNamesRequest<'input>
sourcefn eq(&self, other: &SetNamesRequest<'input>) -> bool
fn eq(&self, other: &SetNamesRequest<'input>) -> bool
sourceimpl<'input> PartialOrd<SetNamesRequest<'input>> for SetNamesRequest<'input>
impl<'input> PartialOrd<SetNamesRequest<'input>> for SetNamesRequest<'input>
sourcefn partial_cmp(&self, other: &SetNamesRequest<'input>) -> Option<Ordering>
fn partial_cmp(&self, other: &SetNamesRequest<'input>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl<'input> Request for SetNamesRequest<'input>
impl<'input> Request for SetNamesRequest<'input>
sourceconst EXTENSION_NAME: Option<&'static str> = Some(X11_EXTENSION_NAME)
const EXTENSION_NAME: Option<&'static str> = Some(X11_EXTENSION_NAME)
The protocol name of the extension that this request belongs to, or None for core requests
impl<'input> Eq for SetNamesRequest<'input>
impl<'input> StructuralEq for SetNamesRequest<'input>
impl<'input> StructuralPartialEq for SetNamesRequest<'input>
impl<'input> VoidRequest for SetNamesRequest<'input>
Auto Trait Implementations
impl<'input> RefUnwindSafe for SetNamesRequest<'input>
impl<'input> Send for SetNamesRequest<'input>
impl<'input> Sync for SetNamesRequest<'input>
impl<'input> Unpin for SetNamesRequest<'input>
impl<'input> UnwindSafe for SetNamesRequest<'input>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more