#[non_exhaustive]#[repr(u8)]pub enum ChannelState {
Show 14 variants
CsNew = 0,
CsInit = 1,
CsRouting = 2,
CsSoftExecute = 3,
CsExecute = 4,
CsExchangeMedia = 5,
CsPark = 6,
CsConsumeMedia = 7,
CsHibernate = 8,
CsReset = 9,
CsHangup = 10,
CsReporting = 11,
CsDestroy = 12,
CsNone = 13,
}Expand description
Channel state from switch_channel_state_t – carried in the Channel-State header
as a string (CS_ROUTING) and in Channel-State-Number as an integer.
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.
CsNew = 0
CsInit = 1
CsRouting = 2
CsSoftExecute = 3
CsExecute = 4
CsExchangeMedia = 5
CsPark = 6
CsConsumeMedia = 7
CsHibernate = 8
CsReset = 9
CsHangup = 10
CsReporting = 11
CsDestroy = 12
CsNone = 13
Implementations§
Source§impl ChannelState
impl ChannelState
Trait Implementations§
Source§impl Clone for ChannelState
impl Clone for ChannelState
Source§fn clone(&self) -> ChannelState
fn clone(&self) -> ChannelState
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 ChannelState
impl Debug for ChannelState
Source§impl<'de> Deserialize<'de> for ChannelState
impl<'de> Deserialize<'de> for ChannelState
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 ChannelState
impl Display for ChannelState
Source§impl FromStr for ChannelState
impl FromStr for ChannelState
Source§impl Hash for ChannelState
impl Hash for ChannelState
Source§impl Ord for ChannelState
impl Ord for ChannelState
Source§fn cmp(&self, other: &ChannelState) -> Ordering
fn cmp(&self, other: &ChannelState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChannelState
impl PartialEq for ChannelState
Source§impl PartialOrd for ChannelState
impl PartialOrd for ChannelState
Source§impl Serialize for ChannelState
impl Serialize for ChannelState
impl Copy for ChannelState
impl Eq for ChannelState
impl StructuralPartialEq for ChannelState
Auto Trait Implementations§
impl Freeze for ChannelState
impl RefUnwindSafe for ChannelState
impl Send for ChannelState
impl Sync for ChannelState
impl Unpin for ChannelState
impl UnsafeUnpin for ChannelState
impl UnwindSafe for ChannelState
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.