#[non_exhaustive]pub struct NowSessionSetKbdLayoutMsg<'a> { /* private fields */ }Expand description
The NOW_SESSION_SET_KBD_LAYOUT_MSG message is used to set the keyboard layout for the active foreground window. The request is fire-and-forget, invalid layout identifiers are ignored.
NOW_PROTO: NOW_SESSION_SET_KBD_LAYOUT_MSG
Implementations§
Source§impl<'a> NowSessionSetKbdLayoutMsg<'a>
impl<'a> NowSessionSetKbdLayoutMsg<'a>
pub fn new_next() -> Self
pub fn new_prev() -> Self
pub fn new_specific(layout: impl Into<Cow<'a, str>>) -> EncodeResult<Self>
pub fn layout(&'a self) -> SetKbdLayoutOption<'a>
Trait Implementations§
Source§impl<'a> Clone for NowSessionSetKbdLayoutMsg<'a>
impl<'a> Clone for NowSessionSetKbdLayoutMsg<'a>
Source§fn clone(&self) -> NowSessionSetKbdLayoutMsg<'a>
fn clone(&self) -> NowSessionSetKbdLayoutMsg<'a>
Returns a duplicate 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<'a> Debug for NowSessionSetKbdLayoutMsg<'a>
impl<'a> Debug for NowSessionSetKbdLayoutMsg<'a>
Source§impl<'de> Decode<'de> for NowSessionSetKbdLayoutMsg<'de>
impl<'de> Decode<'de> for NowSessionSetKbdLayoutMsg<'de>
Source§fn decode(src: &mut ReadCursor<'de>) -> DecodeResult<Self>
fn decode(src: &mut ReadCursor<'de>) -> DecodeResult<Self>
Decodes an instance of
Self from the given byte stream. Read moreSource§impl Encode for NowSessionSetKbdLayoutMsg<'_>
impl Encode for NowSessionSetKbdLayoutMsg<'_>
Source§impl<'a> From<NowSessionSetKbdLayoutMsg<'a>> for NowMessage<'a>
impl<'a> From<NowSessionSetKbdLayoutMsg<'a>> for NowMessage<'a>
Source§fn from(msg: NowSessionSetKbdLayoutMsg<'a>) -> Self
fn from(msg: NowSessionSetKbdLayoutMsg<'a>) -> Self
Converts to this type from the input type.
Source§impl IntoOwned for NowSessionSetKbdLayoutMsg<'_>
impl IntoOwned for NowSessionSetKbdLayoutMsg<'_>
Source§type Owned = NowSessionSetKbdLayoutMsg<'static>
type Owned = NowSessionSetKbdLayoutMsg<'static>
The resulting type after obtaining ownership.
Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Creates owned data from data.
Source§impl<'a> PartialEq for NowSessionSetKbdLayoutMsg<'a>
impl<'a> PartialEq for NowSessionSetKbdLayoutMsg<'a>
Source§fn eq(&self, other: &NowSessionSetKbdLayoutMsg<'a>) -> bool
fn eq(&self, other: &NowSessionSetKbdLayoutMsg<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for NowSessionSetKbdLayoutMsg<'a>
impl<'a> StructuralPartialEq for NowSessionSetKbdLayoutMsg<'a>
Auto Trait Implementations§
impl<'a> Freeze for NowSessionSetKbdLayoutMsg<'a>
impl<'a> RefUnwindSafe for NowSessionSetKbdLayoutMsg<'a>
impl<'a> Send for NowSessionSetKbdLayoutMsg<'a>
impl<'a> Sync for NowSessionSetKbdLayoutMsg<'a>
impl<'a> Unpin for NowSessionSetKbdLayoutMsg<'a>
impl<'a> UnwindSafe for NowSessionSetKbdLayoutMsg<'a>
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