Enum rtdlib::types::CallDiscardReason[][src]

pub enum CallDiscardReason {
    Declined(CallDiscardReasonDeclined),
    Disconnected(CallDiscardReasonDisconnected),
    Empty(CallDiscardReasonEmpty),
    HungUp(CallDiscardReasonHungUp),
    Missed(CallDiscardReasonMissed),
    // some variants omitted
}
Expand description

Describes the reason why a call was discarded

Variants

Declined

The call was ended before the conversation started. It was declined by the other party

Tuple Fields of Declined

0: CallDiscardReasonDeclined
Disconnected

The call was ended during the conversation because the users were disconnected

Tuple Fields of Disconnected

0: CallDiscardReasonDisconnected
Empty

The call wasn’t discarded, or the reason is unknown

Tuple Fields of Empty

0: CallDiscardReasonEmpty
HungUp

The call was ended because one of the parties hung up

Tuple Fields of HungUp

0: CallDiscardReasonHungUp
Missed

The call was ended before the conversation started. It was cancelled by the caller or missed by the other party

Tuple Fields of Missed

0: CallDiscardReasonMissed

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Return td type to json string

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.