[][src]Enum rtdlib::types::CallState

pub enum CallState {
    Discarded(CallStateDiscarded),
    Error(CallStateError),
    ExchangingKeys(CallStateExchangingKeys),
    HangingUp(CallStateHangingUp),
    Pending(CallStatePending),
    Ready(CallStateReady),
    // some variants omitted
}

Describes the current call state

Variants

The call has ended successfully

The call has ended with an error

ExchangingKeys(CallStateExchangingKeys)

The call has been answered and encryption keys are being exchanged

The call is hanging up after discardCall has been called

The call is pending, waiting to be accepted by a user

The call is ready to use

Implementations

impl CallState[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

pub fn as_discarded(&self) -> Option<&CallStateDiscarded>[src]

pub fn as_error(&self) -> Option<&CallStateError>[src]

pub fn as_exchanging_keys(&self) -> Option<&CallStateExchangingKeys>[src]

pub fn as_hanging_up(&self) -> Option<&CallStateHangingUp>[src]

pub fn as_pending(&self) -> Option<&CallStatePending>[src]

pub fn as_ready(&self) -> Option<&CallStateReady>[src]

pub fn discarded<T: AsRef<CallStateDiscarded>>(t: T) -> Self[src]

pub fn error<T: AsRef<CallStateError>>(t: T) -> Self[src]

pub fn exchanging_keys<T: AsRef<CallStateExchangingKeys>>(t: T) -> Self[src]

pub fn hanging_up<T: AsRef<CallStateHangingUp>>(t: T) -> Self[src]

pub fn pending<T: AsRef<CallStatePending>>(t: T) -> Self[src]

pub fn ready<T: AsRef<CallStateReady>>(t: T) -> Self[src]

Trait Implementations

impl AsRef<CallState> for CallState[src]

impl Clone for CallState[src]

impl Debug for CallState[src]

impl Default for CallState[src]

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

impl RObject for CallState[src]

impl Serialize for CallState[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.