pub struct EventRef { /* private fields */ }Implementations§
Source§impl EventRef
impl EventRef
Sourcepub unsafe fn from_raw(raw: *mut switch_event_t) -> Self
pub unsafe fn from_raw(raw: *mut switch_event_t) -> Self
Wraps a FreeSWITCH event pointer for the duration of a callback.
§Safety
raw must point to a live FreeSWITCH event and remain valid while this wrapper is used.
pub fn as_ptr(self) -> *mut switch_event_t
pub fn header(self, name: impl AsRef<str>) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventRef
impl RefUnwindSafe for EventRef
impl !Send for EventRef
impl !Sync for EventRef
impl Unpin for EventRef
impl UnsafeUnpin for EventRef
impl UnwindSafe for EventRef
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