Struct x11rb_protocol::protocol::xkb::SetNamedIndicatorRequest
source · pub struct SetNamedIndicatorRequest {Show 15 fields
pub device_spec: DeviceSpec,
pub led_class: LedClass,
pub led_id: IDSpec,
pub indicator: Atom,
pub set_state: bool,
pub on: bool,
pub set_map: bool,
pub create_map: bool,
pub map_flags: IMFlag,
pub map_which_groups: IMGroupsWhich,
pub map_groups: SetOfGroups,
pub map_which_mods: IMModsWhich,
pub map_real_mods: ModMask,
pub map_vmods: VMod,
pub map_ctrls: BoolCtrl,
}
Fields§
§device_spec: DeviceSpec
§led_class: LedClass
§led_id: IDSpec
§indicator: Atom
§set_state: bool
§on: bool
§set_map: bool
§create_map: bool
§map_flags: IMFlag
§map_which_groups: IMGroupsWhich
§map_groups: SetOfGroups
§map_which_mods: IMModsWhich
§map_real_mods: ModMask
§map_vmods: VMod
§map_ctrls: BoolCtrl
Implementations§
source§impl SetNamedIndicatorRequest
impl SetNamedIndicatorRequest
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8] ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations§
source§impl Clone for SetNamedIndicatorRequest
impl Clone for SetNamedIndicatorRequest
source§fn clone(&self) -> SetNamedIndicatorRequest
fn clone(&self) -> SetNamedIndicatorRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SetNamedIndicatorRequest
impl Debug for SetNamedIndicatorRequest
source§impl Default for SetNamedIndicatorRequest
impl Default for SetNamedIndicatorRequest
source§fn default() -> SetNamedIndicatorRequest
fn default() -> SetNamedIndicatorRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SetNamedIndicatorRequest
impl<'de> Deserialize<'de> for SetNamedIndicatorRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SetNamedIndicatorRequest
impl Hash for SetNamedIndicatorRequest
source§impl Ord for SetNamedIndicatorRequest
impl Ord for SetNamedIndicatorRequest
source§fn cmp(&self, other: &SetNamedIndicatorRequest) -> Ordering
fn cmp(&self, other: &SetNamedIndicatorRequest) -> Ordering
1.21.0 · source§fn 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
source§impl PartialEq for SetNamedIndicatorRequest
impl PartialEq for SetNamedIndicatorRequest
source§fn eq(&self, other: &SetNamedIndicatorRequest) -> bool
fn eq(&self, other: &SetNamedIndicatorRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SetNamedIndicatorRequest
impl PartialOrd for SetNamedIndicatorRequest
source§fn partial_cmp(&self, other: &SetNamedIndicatorRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &SetNamedIndicatorRequest) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Request for SetNamedIndicatorRequest
impl Request for SetNamedIndicatorRequest
source§impl Serialize for SetNamedIndicatorRequest
impl Serialize for SetNamedIndicatorRequest
impl Copy for SetNamedIndicatorRequest
impl Eq for SetNamedIndicatorRequest
impl StructuralPartialEq for SetNamedIndicatorRequest
impl VoidRequest for SetNamedIndicatorRequest
Auto Trait Implementations§
impl Freeze for SetNamedIndicatorRequest
impl RefUnwindSafe for SetNamedIndicatorRequest
impl Send for SetNamedIndicatorRequest
impl Sync for SetNamedIndicatorRequest
impl Unpin for SetNamedIndicatorRequest
impl UnwindSafe for SetNamedIndicatorRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more