LoopControlImpl

Struct LoopControlImpl 

Source
pub struct LoopControlImpl {
Show 14 fields pub inner: Pin<Box<dyn Any>>, pub get_fd: fn(&LoopControlImpl) -> u32, pub add_hook: fn(_: &LoopControlImpl, hooks: LoopControlHooks) -> HookId, pub remove_hook: fn(_: &LoopControlImpl, hook: HookId), pub enter: fn(&LoopControlImpl), pub leave: fn(&LoopControlImpl), pub iterate: fn(_: &LoopControlImpl, timeout: Option<Duration>) -> Result<i32>, pub check: fn(&LoopControlImpl) -> Result<i32>, pub lock: fn(&LoopControlImpl) -> Result<i32>, pub unlock: fn(&LoopControlImpl) -> Result<i32>, pub get_time: fn(_: &LoopControlImpl, timeout: Duration) -> Result<timespec>, pub wait: fn(_: &LoopControlImpl, abstime: &timespec) -> Result<i32>, pub signal: fn(_: &LoopControlImpl, wait_for_accept: bool) -> Result<i32>, pub accept: fn(&LoopControlImpl) -> Result<i32>,
}

Fields§

§inner: Pin<Box<dyn Any>>§get_fd: fn(&LoopControlImpl) -> u32§add_hook: fn(_: &LoopControlImpl, hooks: LoopControlHooks) -> HookId§remove_hook: fn(_: &LoopControlImpl, hook: HookId)§enter: fn(&LoopControlImpl)§leave: fn(&LoopControlImpl)§iterate: fn(_: &LoopControlImpl, timeout: Option<Duration>) -> Result<i32>§check: fn(&LoopControlImpl) -> Result<i32>§lock: fn(&LoopControlImpl) -> Result<i32>§unlock: fn(&LoopControlImpl) -> Result<i32>§get_time: fn(_: &LoopControlImpl, timeout: Duration) -> Result<timespec>§wait: fn(_: &LoopControlImpl, abstime: &timespec) -> Result<i32>§signal: fn(_: &LoopControlImpl, wait_for_accept: bool) -> Result<i32>§accept: fn(&LoopControlImpl) -> Result<i32>

Implementations§

Source§

impl LoopControlImpl

Source

pub fn get_fd(&self) -> u32

Source

pub fn add_hook(&self, hooks: LoopControlHooks) -> HookId

Source

pub fn remove_hook(&self, hook: HookId)

Source

pub fn enter(&self)

Source

pub fn leave(&self)

Source

pub fn iterate(&self, timeout: Option<Duration>) -> Result<i32>

Source

pub fn check(&self) -> Result<i32>

Source

pub fn lock(&self) -> Result<i32>

Source

pub fn unlock(&self) -> Result<i32>

Source

pub fn get_time(&self, timeout: Duration) -> Result<timespec>

Source

pub fn wait(&self, abstime: &timespec) -> Result<i32>

Source

pub fn signal(&self, wait_for_accept: bool) -> Result<i32>

Source

pub fn accept(&self) -> Result<i32>

Trait Implementations§

Source§

impl Interface for LoopControlImpl

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 LoopControlImpl

Source§

impl Sync for LoopControlImpl

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.