LoopUtilsImpl

Struct LoopUtilsImpl 

Source
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: &timespec, interval: Option<&timespec>, 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: &timespec, interval: Option<&timespec>, 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

Source

pub fn add_io( &self, fd: RawFd, mask: Io, close: bool, func: Box<SourceIoFn>, ) -> Option<Pin<Box<LoopUtilsSource>>>

Source

pub fn update_io( &self, source: &mut Pin<Box<LoopUtilsSource>>, mask: Io, ) -> Result<i32>

Source

pub fn add_idle( &self, enabled: bool, func: Box<SourceIdleFn>, ) -> Option<Pin<Box<LoopUtilsSource>>>

Source

pub fn enable_idle( &self, source: &mut Pin<Box<LoopUtilsSource>>, enabled: bool, ) -> Result<i32>

Source

pub fn add_event( &self, func: Box<SourceEventFn>, ) -> Option<Pin<Box<LoopUtilsSource>>>

Source

pub fn signal_event( &self, source: &mut Pin<Box<LoopUtilsSource>>, ) -> Result<i32>

Source

pub fn add_timer( &self, func: Box<SourceTimerFn>, ) -> Option<Pin<Box<LoopUtilsSource>>>

Source

pub fn update_timer( &self, source: &mut Pin<Box<LoopUtilsSource>>, value: &timespec, interval: Option<&timespec>, absolute: bool, ) -> Result<i32>

Source

pub fn add_signal( &self, signal_number: i32, func: Box<SourceSignalFn>, ) -> Option<Pin<Box<LoopUtilsSource>>>

Source

pub fn destroy_source(&self, source: Pin<Box<LoopUtilsSource>>)

Trait Implementations§

Source§

impl Interface for LoopUtilsImpl

Source§

unsafe fn make_native(&self) -> *mut CInterface

Return a C-compatible spa_interface pointer Read more
Source§

unsafe fn free_native(loop_: *mut CInterface)

Return a C-compatible spa_interface pointer Read more
Source§

fn type_id(&self) -> TypeId
where Self: 'static,

Source§

impl Send for LoopUtilsImpl

Source§

impl Sync for LoopUtilsImpl

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.