#[repr(C)]pub struct switch_state_handler_table {Show 14 fields
pub on_init: switch_state_handler_t,
pub on_routing: switch_state_handler_t,
pub on_execute: switch_state_handler_t,
pub on_hangup: switch_state_handler_t,
pub on_exchange_media: switch_state_handler_t,
pub on_soft_execute: switch_state_handler_t,
pub on_consume_media: switch_state_handler_t,
pub on_hibernate: switch_state_handler_t,
pub on_reset: switch_state_handler_t,
pub on_park: switch_state_handler_t,
pub on_reporting: switch_state_handler_t,
pub on_destroy: switch_state_handler_t,
pub flags: c_int,
pub padding: [*mut c_void; 10],
}Fields§
§on_init: switch_state_handler_texecuted when the state changes to init
on_routing: switch_state_handler_texecuted when the state changes to routing
on_execute: switch_state_handler_texecuted when the state changes to execute
on_hangup: switch_state_handler_texecuted when the state changes to hangup
on_exchange_media: switch_state_handler_texecuted when the state changes to exchange_media
on_soft_execute: switch_state_handler_texecuted when the state changes to soft_execute
on_consume_media: switch_state_handler_texecuted when the state changes to consume_media
on_hibernate: switch_state_handler_texecuted when the state changes to hibernate
on_reset: switch_state_handler_texecuted when the state changes to reset
on_park: switch_state_handler_texecuted when the state changes to park
on_reporting: switch_state_handler_texecuted when the state changes to reporting
on_destroy: switch_state_handler_texecuted when the state changes to destroy
flags: c_int§padding: [*mut c_void; 10]Trait Implementations§
Source§impl Clone for switch_state_handler_table
impl Clone for switch_state_handler_table
Source§fn clone(&self) -> switch_state_handler_table
fn clone(&self) -> switch_state_handler_table
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_state_handler_table
impl Debug for switch_state_handler_table
impl Copy for switch_state_handler_table
Auto Trait Implementations§
impl Freeze for switch_state_handler_table
impl RefUnwindSafe for switch_state_handler_table
impl !Send for switch_state_handler_table
impl !Sync for switch_state_handler_table
impl Unpin for switch_state_handler_table
impl UnwindSafe for switch_state_handler_table
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