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: ×pec) -> 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: ×pec) -> Result<i32>§signal: fn(_: &LoopControlImpl, wait_for_accept: bool) -> Result<i32>§accept: fn(&LoopControlImpl) -> Result<i32>Implementations§
Source§impl LoopControlImpl
impl LoopControlImpl
pub fn get_fd(&self) -> u32
pub fn add_hook(&self, hooks: LoopControlHooks) -> HookId
pub fn remove_hook(&self, hook: HookId)
pub fn enter(&self)
pub fn leave(&self)
pub fn iterate(&self, timeout: Option<Duration>) -> Result<i32>
pub fn check(&self) -> Result<i32>
pub fn lock(&self) -> Result<i32>
pub fn unlock(&self) -> Result<i32>
pub fn get_time(&self, timeout: Duration) -> Result<timespec>
pub fn wait(&self, abstime: ×pec) -> Result<i32>
pub fn signal(&self, wait_for_accept: bool) -> Result<i32>
pub fn accept(&self) -> Result<i32>
Trait Implementations§
Source§impl Interface for LoopControlImpl
impl Interface for LoopControlImpl
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 LoopControlImpl
impl Sync for LoopControlImpl
Auto Trait Implementations§
impl Freeze for LoopControlImpl
impl !RefUnwindSafe for LoopControlImpl
impl Unpin for LoopControlImpl
impl !UnwindSafe for LoopControlImpl
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