pub struct EventSource<'l> { /* private fields */ }Expand description
A source that can be used to signal to a loop that an event has occurred.
This source can be obtained by calling add_event on a loop, registering a callback to it.
By calling signal on the EventSource, the loop is signaled that the event has occurred.
It will then call the callback at the next possible occasion.
Implementations§
Trait Implementations§
Source§impl<'l> Drop for EventSource<'l>
impl<'l> Drop for EventSource<'l>
Source§impl<'l> IsSource for EventSource<'l>
impl<'l> IsSource for EventSource<'l>
Source§fn as_ptr(&self) -> *mut spa_source
fn as_ptr(&self) -> *mut spa_source
Return a valid pointer to a raw
spa_source.Auto Trait Implementations§
impl<'l> Freeze for EventSource<'l>
impl<'l> !RefUnwindSafe for EventSource<'l>
impl<'l> !Send for EventSource<'l>
impl<'l> !Sync for EventSource<'l>
impl<'l> Unpin for EventSource<'l>
impl<'l> !UnwindSafe for EventSource<'l>
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