pub struct LoopUtilsImpl {
pub inner: Pin<Box<dyn Any>>,
pub add_io: fn(_: &LoopUtilsImpl, fd: RawFd, mask: Io, close: bool, func: Box<SourceIoFn>) -> Option<Pin<Box<LoopUtilsSource>>>,
pub update_io: fn(_: &LoopUtilsImpl, source: &mut Pin<Box<LoopUtilsSource>>, mask: Io) -> Result<i32>,
pub add_idle: fn(_: &LoopUtilsImpl, enabled: bool, func: Box<SourceIdleFn>) -> Option<Pin<Box<LoopUtilsSource>>>,
pub enable_idle: fn(_: &LoopUtilsImpl, source: &mut Pin<Box<LoopUtilsSource>>, enabled: bool) -> Result<i32>,
pub add_event: fn(_: &LoopUtilsImpl, func: Box<SourceEventFn>) -> Option<Pin<Box<LoopUtilsSource>>>,
pub signal_event: fn(_: &LoopUtilsImpl, source: &mut Pin<Box<LoopUtilsSource>>) -> Result<i32>,
pub add_timer: fn(_: &LoopUtilsImpl, func: Box<SourceTimerFn>) -> Option<Pin<Box<LoopUtilsSource>>>,
pub update_timer: fn(_: &LoopUtilsImpl, source: &mut Pin<Box<LoopUtilsSource>>, value: ×pec, interval: Option<×pec>, absolute: bool) -> Result<i32>,
pub add_signal: fn(_: &LoopUtilsImpl, signal_number: i32, func: Box<SourceSignalFn>) -> Option<Pin<Box<LoopUtilsSource>>>,
pub destroy_source: fn(_: &LoopUtilsImpl, source: Pin<Box<LoopUtilsSource>>),
}Fields§
§inner: Pin<Box<dyn Any>>§add_io: fn(_: &LoopUtilsImpl, fd: RawFd, mask: Io, close: bool, func: Box<SourceIoFn>) -> Option<Pin<Box<LoopUtilsSource>>>§update_io: fn(_: &LoopUtilsImpl, source: &mut Pin<Box<LoopUtilsSource>>, mask: Io) -> Result<i32>§add_idle: fn(_: &LoopUtilsImpl, enabled: bool, func: Box<SourceIdleFn>) -> Option<Pin<Box<LoopUtilsSource>>>§enable_idle: fn(_: &LoopUtilsImpl, source: &mut Pin<Box<LoopUtilsSource>>, enabled: bool) -> Result<i32>§add_event: fn(_: &LoopUtilsImpl, func: Box<SourceEventFn>) -> Option<Pin<Box<LoopUtilsSource>>>§signal_event: fn(_: &LoopUtilsImpl, source: &mut Pin<Box<LoopUtilsSource>>) -> Result<i32>§add_timer: fn(_: &LoopUtilsImpl, func: Box<SourceTimerFn>) -> Option<Pin<Box<LoopUtilsSource>>>§update_timer: fn(_: &LoopUtilsImpl, source: &mut Pin<Box<LoopUtilsSource>>, value: ×pec, interval: Option<×pec>, absolute: bool) -> Result<i32>§add_signal: fn(_: &LoopUtilsImpl, signal_number: i32, func: Box<SourceSignalFn>) -> Option<Pin<Box<LoopUtilsSource>>>§destroy_source: fn(_: &LoopUtilsImpl, source: Pin<Box<LoopUtilsSource>>)Implementations§
Source§impl LoopUtilsImpl
impl LoopUtilsImpl
pub fn add_io( &self, fd: RawFd, mask: Io, close: bool, func: Box<SourceIoFn>, ) -> Option<Pin<Box<LoopUtilsSource>>>
pub fn update_io( &self, source: &mut Pin<Box<LoopUtilsSource>>, mask: Io, ) -> Result<i32>
pub fn add_idle( &self, enabled: bool, func: Box<SourceIdleFn>, ) -> Option<Pin<Box<LoopUtilsSource>>>
pub fn enable_idle( &self, source: &mut Pin<Box<LoopUtilsSource>>, enabled: bool, ) -> Result<i32>
pub fn add_event( &self, func: Box<SourceEventFn>, ) -> Option<Pin<Box<LoopUtilsSource>>>
pub fn signal_event( &self, source: &mut Pin<Box<LoopUtilsSource>>, ) -> Result<i32>
pub fn add_timer( &self, func: Box<SourceTimerFn>, ) -> Option<Pin<Box<LoopUtilsSource>>>
pub fn update_timer( &self, source: &mut Pin<Box<LoopUtilsSource>>, value: ×pec, interval: Option<×pec>, absolute: bool, ) -> Result<i32>
pub fn add_signal( &self, signal_number: i32, func: Box<SourceSignalFn>, ) -> Option<Pin<Box<LoopUtilsSource>>>
pub fn destroy_source(&self, source: Pin<Box<LoopUtilsSource>>)
Trait Implementations§
Source§impl Interface for LoopUtilsImpl
impl Interface for LoopUtilsImpl
Source§unsafe fn make_native(&self) -> *mut CInterface
unsafe fn make_native(&self) -> *mut CInterface
Return a C-compatible spa_interface pointer Read more
Source§unsafe fn free_native(loop_: *mut CInterface)
unsafe fn free_native(loop_: *mut CInterface)
Return a C-compatible spa_interface pointer Read more
fn type_id(&self) -> TypeIdwhere
Self: 'static,
impl Send for LoopUtilsImpl
impl Sync for LoopUtilsImpl
Auto Trait Implementations§
impl Freeze for LoopUtilsImpl
impl !RefUnwindSafe for LoopUtilsImpl
impl Unpin for LoopUtilsImpl
impl !UnwindSafe for LoopUtilsImpl
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