[][src]Enum rtdlib::types::InputBackground

pub enum InputBackground {
    Local(InputBackgroundLocal),
    Remote(InputBackgroundRemote),
    // some variants omitted
}

Contains information about background to set

Variants

A background from a local file

A background from the server

Implementations

impl InputBackground[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

pub fn is_local(&self) -> bool[src]

pub fn is_remote(&self) -> bool[src]

pub fn on_local<F: FnOnce(&InputBackgroundLocal)>(&self, fnc: F) -> &Self[src]

pub fn on_remote<F: FnOnce(&InputBackgroundRemote)>(&self, fnc: F) -> &Self[src]

pub fn as_local(&self) -> Option<&InputBackgroundLocal>[src]

pub fn as_remote(&self) -> Option<&InputBackgroundRemote>[src]

pub fn local<T: AsRef<InputBackgroundLocal>>(t: T) -> Self[src]

pub fn remote<T: AsRef<InputBackgroundRemote>>(t: T) -> Self[src]

Trait Implementations

impl AsRef<InputBackground> for InputBackground[src]

impl Clone for InputBackground[src]

impl Debug for InputBackground[src]

impl Default for InputBackground[src]

impl<'de> Deserialize<'de> for InputBackground[src]

impl RObject for InputBackground[src]

impl Serialize for InputBackground[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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, 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.