#[non_exhaustive]pub enum AnswerState {
Hangup,
Answered,
Early,
Ringing,
}Expand description
Answer state from the Answer-State header. Wire format is lowercase.
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.
Trait Implementations§
Source§impl Clone for AnswerState
impl Clone for AnswerState
Source§fn clone(&self) -> AnswerState
fn clone(&self) -> AnswerState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnswerState
impl Debug for AnswerState
Source§impl<'de> Deserialize<'de> for AnswerState
impl<'de> Deserialize<'de> for AnswerState
Source§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
Source§impl Display for AnswerState
impl Display for AnswerState
Source§impl FromStr for AnswerState
impl FromStr for AnswerState
Source§impl Hash for AnswerState
impl Hash for AnswerState
Source§impl PartialEq for AnswerState
impl PartialEq for AnswerState
Source§impl Serialize for AnswerState
impl Serialize for AnswerState
impl Copy for AnswerState
impl Eq for AnswerState
impl StructuralPartialEq for AnswerState
Auto Trait Implementations§
impl Freeze for AnswerState
impl RefUnwindSafe for AnswerState
impl Send for AnswerState
impl Sync for AnswerState
impl Unpin for AnswerState
impl UnsafeUnpin for AnswerState
impl UnwindSafe for AnswerState
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.