pub struct XkbConfig {
pub rules: Option<String>,
pub model: Option<String>,
pub layout: Option<String>,
pub variant: Option<String>,
pub options: Option<String>,
}
Expand description
A struct that lets you define xkeyboard config options.
See xkeyboard-config(7)
for more information.
Fields§
§rules: Option<String>
Files of rules to be used for keyboard mapping composition
model: Option<String>
Name of the model of your keyboard type
layout: Option<String>
Layout(s) you intend to use
variant: Option<String>
Variant(s) of the layout you intend to use
options: Option<String>
Extra xkb configuration options
Implementations§
Source§impl XkbConfig
impl XkbConfig
Sourcepub fn with_rules(self, rules: impl ToString) -> Self
pub fn with_rules(self, rules: impl ToString) -> Self
Sets this config’s rules
.
Sourcepub fn with_model(self, model: impl ToString) -> Self
pub fn with_model(self, model: impl ToString) -> Self
Sets this config’s model
.
Sourcepub fn with_layout(self, layout: impl ToString) -> Self
pub fn with_layout(self, layout: impl ToString) -> Self
Sets this config’s layout
.
Sourcepub fn with_variant(self, variant: impl ToString) -> Self
pub fn with_variant(self, variant: impl ToString) -> Self
Sets this config’s variant
.
Sourcepub fn with_options(self, options: impl ToString) -> Self
pub fn with_options(self, options: impl ToString) -> Self
Sets this config’s options
.
Trait Implementations§
impl Eq for XkbConfig
impl StructuralPartialEq for XkbConfig
Auto Trait Implementations§
impl Freeze for XkbConfig
impl RefUnwindSafe for XkbConfig
impl Send for XkbConfig
impl Sync for XkbConfig
impl Unpin for XkbConfig
impl UnwindSafe for XkbConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered
].