Enum CallStateReason
#[non_exhaustive]pub enum CallStateReason {
Unknown,
OutgoingStarted,
IncomingNew,
Accepted,
Terminated,
RefusedOrBusy,
Error,
AudioSetupFailed,
Transferred,
Deflected,
Other(u32),
}Expand description
The reason for a state change of a call.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
The reason is not known.
OutgoingStarted
An outgoing call started.
IncomingNew
A new incoming call arrived.
Accepted
The call was accepted.
Terminated
The call ended.
RefusedOrBusy
The call was refused or the line is busy.
Error
An error occurred.
AudioSetupFailed
The audio setup failed.
Transferred
The call was transferred.
Added in ModemManager 1.12.
Deflected
The call was deflected.
Added in ModemManager 1.12.
Other(u32)
A value that this version of the crate doesn’t know.
Implementations§
§impl CallStateReason
impl CallStateReason
Trait Implementations§
§impl Clone for CallStateReason
impl Clone for CallStateReason
§fn clone(&self) -> CallStateReason
fn clone(&self) -> CallStateReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CallStateReason
§impl Debug for CallStateReason
impl Debug for CallStateReason
§impl<'de> Deserialize<'de> for CallStateReason
impl<'de> Deserialize<'de> for CallStateReason
§fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CallStateReason
§impl From<CallStateReason> for u32
impl From<CallStateReason> for u32
§fn from(__value: CallStateReason) -> Self
fn from(__value: CallStateReason) -> Self
Converts to this type from the input type.
§impl From<CallStateReason> for Value<'static>
impl From<CallStateReason> for Value<'static>
§fn from(__value: CallStateReason) -> Self
fn from(__value: CallStateReason) -> Self
Converts to this type from the input type.
§impl From<u32> for CallStateReason
impl From<u32> for CallStateReason
§impl Hash for CallStateReason
impl Hash for CallStateReason
§impl PartialEq for CallStateReason
impl PartialEq for CallStateReason
§impl Serialize for CallStateReason
impl Serialize for CallStateReason
impl StructuralPartialEq for CallStateReason
§impl TryFrom<OwnedValue> for CallStateReason
impl TryFrom<OwnedValue> for CallStateReason
§impl<'__a> TryFrom<Value<'__a>> for CallStateReason
impl<'__a> TryFrom<Value<'__a>> for CallStateReason
§impl Type for CallStateReason
impl Type for CallStateReason
Auto Trait Implementations§
impl Freeze for CallStateReason
impl RefUnwindSafe for CallStateReason
impl Send for CallStateReason
impl Sync for CallStateReason
impl Unpin for CallStateReason
impl UnsafeUnpin for CallStateReason
impl UnwindSafe for CallStateReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.