#[repr(transparent)]pub struct switch_channel_state_t(pub c_uint);Expand description
\enum switch_channel_state_t \brief Channel States (these are the defaults, CS_SOFT_EXECUTE, CS_EXCHANGE_MEDIA, and CS_CONSUME_MEDIA are often overridden by specific apps)
CS_NEW - Channel is newly created. CS_INIT - Channel has been initialized. CS_ROUTING - Channel is looking for an extension to execute. CS_SOFT_EXECUTE - Channel is ready to execute from 3rd party control. CS_EXECUTE - Channel is executing it's dialplan. CS_EXCHANGE_MEDIA - Channel is exchanging media with another channel. CS_PARK - Channel is accepting media awaiting commands. CS_CONSUME_MEDIA - Channel is consuming all media and dropping it. CS_HIBERNATE - Channel is in a sleep state. CS_RESET - Channel is in a reset state. CS_HANGUP - Channel is flagged for hangup and ready to end. CS_REPORTING - Channel is ready to collect call detail. CS_DESTROY - Channel is ready to be destroyed and out of the state machine.
Tuple Fields§
§0: c_uintImplementations§
Source§impl switch_channel_state_t
impl switch_channel_state_t
pub const CS_NEW: switch_channel_state_t
Source§impl switch_channel_state_t
impl switch_channel_state_t
pub const CS_INIT: switch_channel_state_t
Source§impl switch_channel_state_t
impl switch_channel_state_t
pub const CS_ROUTING: switch_channel_state_t
Source§impl switch_channel_state_t
impl switch_channel_state_t
pub const CS_EXECUTE: switch_channel_state_t
Source§impl switch_channel_state_t
impl switch_channel_state_t
pub const CS_PARK: switch_channel_state_t
Source§impl switch_channel_state_t
impl switch_channel_state_t
pub const CS_RESET: switch_channel_state_t
Source§impl switch_channel_state_t
impl switch_channel_state_t
pub const CS_HANGUP: switch_channel_state_t
Source§impl switch_channel_state_t
impl switch_channel_state_t
pub const CS_DESTROY: switch_channel_state_t
Source§impl switch_channel_state_t
impl switch_channel_state_t
pub const CS_NONE: switch_channel_state_t
Trait Implementations§
Source§impl Clone for switch_channel_state_t
impl Clone for switch_channel_state_t
Source§fn clone(&self) -> switch_channel_state_t
fn clone(&self) -> switch_channel_state_t
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 switch_channel_state_t
impl Debug for switch_channel_state_t
Source§impl Hash for switch_channel_state_t
impl Hash for switch_channel_state_t
Source§impl PartialEq for switch_channel_state_t
impl PartialEq for switch_channel_state_t
impl Copy for switch_channel_state_t
impl Eq for switch_channel_state_t
impl StructuralPartialEq for switch_channel_state_t
Auto Trait Implementations§
impl Freeze for switch_channel_state_t
impl RefUnwindSafe for switch_channel_state_t
impl Send for switch_channel_state_t
impl Sync for switch_channel_state_t
impl Unpin for switch_channel_state_t
impl UnwindSafe for switch_channel_state_t
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