#[repr(C)]pub struct switch_event {
pub event_id: switch_event_types_t,
pub priority: switch_priority_t,
pub owner: *mut c_char,
pub subclass_name: *mut c_char,
pub headers: *mut switch_event_header_t,
pub last_header: *mut switch_event_header_t,
pub body: *mut c_char,
pub bind_user_data: *mut c_void,
pub event_user_data: *mut c_void,
pub key: c_ulong,
pub next: *mut switch_event,
pub flags: c_int,
}Expand description
\brief Representation of an event
Fields§
§event_id: switch_event_types_tthe event id (descriptor)
priority: switch_priority_tthe priority of the event
owner: *mut c_charthe owner of the event
subclass_name: *mut c_charthe subclass of the event
headers: *mut switch_event_header_tthe event headers
last_header: *mut switch_event_header_tthe event headers tail pointer
body: *mut c_charthe body of the event
bind_user_data: *mut c_voiduser data from the subclass provider
event_user_data: *mut c_voiduser data from the event sender
key: c_ulongunique key
next: *mut switch_event§flags: c_intTrait Implementations§
Source§impl Clone for switch_event
impl Clone for switch_event
Source§fn clone(&self) -> switch_event
fn clone(&self) -> switch_event
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_event
impl Debug for switch_event
impl Copy for switch_event
Auto Trait Implementations§
impl Freeze for switch_event
impl RefUnwindSafe for switch_event
impl !Send for switch_event
impl !Sync for switch_event
impl Unpin for switch_event
impl UnwindSafe for switch_event
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