[][src]Struct discord_game_sdk::InputMode

pub struct InputMode(_);

Methods

impl InputMode[src]

pub fn kind(&self) -> InputModeKind[src]

pub fn shortcut(&self) -> &str[src]

pub fn empty() -> Self[src]

Create a new, empty Input Mode

pub fn with_kind(&mut self, kind: InputModeKind) -> &mut Self[src]

pub fn with_shortcut(&mut self, value: impl AsRef<CStr>) -> &mut Self[src]

https://discordapp.com/developers/docs/game-sdk/discord-voice#data-models-shortcut-keys value must be valid UTF-8

Panics

value must be smaller than the container it is being written to

Trait Implementations

impl Copy for InputMode[src]

impl Clone for InputMode[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<InputMode> for InputMode[src]

impl From<DiscordInputMode> for InputMode[src]

impl From<InputMode> for DiscordInputMode[src]

impl Eq for InputMode[src]

impl Debug for InputMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]