pub struct SystemImpl {Show 21 fields
pub inner: Pin<Box<dyn Any>>,
pub read: fn(this: &SystemImpl, fd: RawFd, buf: &mut [u8]) -> Result<isize>,
pub write: fn(this: &SystemImpl, fd: RawFd, buf: &[u8]) -> Result<isize>,
pub ioctl: unsafe extern "C" fn(fd: RawFd, request: u64, ...) -> i32,
pub close: fn(this: &SystemImpl, fd: RawFd) -> Result<i32>,
pub clock_gettime: fn(this: &SystemImpl, clockid: clockid_t, value: &mut timespec) -> Result<i32>,
pub clock_getres: fn(this: &SystemImpl, clockid: clockid_t, res: &mut timespec) -> Result<i32>,
pub pollfd_create: fn(this: &SystemImpl, flags: Fd) -> Result<i32>,
pub pollfd_add: fn(this: &SystemImpl, pfd: RawFd, fd: RawFd, events: Io, data: u64) -> Result<i32>,
pub pollfd_mod: fn(this: &SystemImpl, pfd: RawFd, fd: RawFd, events: Io, data: u64) -> Result<i32>,
pub pollfd_del: fn(this: &SystemImpl, pfd: RawFd, fd: RawFd) -> Result<i32>,
pub pollfd_wait: fn(this: &SystemImpl, pfd: RawFd, events: &mut [PollEvent], timeout: i32) -> Result<i32>,
pub timerfd_create: fn(this: &SystemImpl, clockid: i32, flags: Fd) -> Result<i32>,
pub timerfd_settime: fn(this: &SystemImpl, fd: RawFd, flags: Fd, new_value: &itimerspec, old_value: Option<&mut itimerspec>) -> Result<i32>,
pub timerfd_gettime: fn(this: &SystemImpl, fd: RawFd, curr_value: &mut itimerspec) -> Result<i32>,
pub timerfd_read: fn(this: &SystemImpl, fd: RawFd) -> Result<u64>,
pub eventfd_create: fn(this: &SystemImpl, flags: Fd) -> Result<i32>,
pub eventfd_write: fn(this: &SystemImpl, fd: RawFd, count: u64) -> Result<i32>,
pub eventfd_read: fn(this: &SystemImpl, fd: RawFd) -> Result<u64>,
pub signalfd_create: fn(this: &SystemImpl, signal: u32, flags: Fd) -> Result<i32>,
pub signalfd_read: fn(this: &SystemImpl, fd: RawFd) -> Result<u32>,
}Fields§
§inner: Pin<Box<dyn Any>>§read: fn(this: &SystemImpl, fd: RawFd, buf: &mut [u8]) -> Result<isize>§write: fn(this: &SystemImpl, fd: RawFd, buf: &[u8]) -> Result<isize>§ioctl: unsafe extern "C" fn(fd: RawFd, request: u64, ...) -> i32§close: fn(this: &SystemImpl, fd: RawFd) -> Result<i32>§clock_gettime: fn(this: &SystemImpl, clockid: clockid_t, value: &mut timespec) -> Result<i32>§clock_getres: fn(this: &SystemImpl, clockid: clockid_t, res: &mut timespec) -> Result<i32>§pollfd_create: fn(this: &SystemImpl, flags: Fd) -> Result<i32>§pollfd_add: fn(this: &SystemImpl, pfd: RawFd, fd: RawFd, events: Io, data: u64) -> Result<i32>§pollfd_mod: fn(this: &SystemImpl, pfd: RawFd, fd: RawFd, events: Io, data: u64) -> Result<i32>§pollfd_del: fn(this: &SystemImpl, pfd: RawFd, fd: RawFd) -> Result<i32>§pollfd_wait: fn(this: &SystemImpl, pfd: RawFd, events: &mut [PollEvent], timeout: i32) -> Result<i32>§timerfd_create: fn(this: &SystemImpl, clockid: i32, flags: Fd) -> Result<i32>§timerfd_settime: fn(this: &SystemImpl, fd: RawFd, flags: Fd, new_value: &itimerspec, old_value: Option<&mut itimerspec>) -> Result<i32>§timerfd_gettime: fn(this: &SystemImpl, fd: RawFd, curr_value: &mut itimerspec) -> Result<i32>§timerfd_read: fn(this: &SystemImpl, fd: RawFd) -> Result<u64>§eventfd_create: fn(this: &SystemImpl, flags: Fd) -> Result<i32>§eventfd_write: fn(this: &SystemImpl, fd: RawFd, count: u64) -> Result<i32>§eventfd_read: fn(this: &SystemImpl, fd: RawFd) -> Result<u64>§signalfd_create: fn(this: &SystemImpl, signal: u32, flags: Fd) -> Result<i32>§signalfd_read: fn(this: &SystemImpl, fd: RawFd) -> Result<u32>Implementations§
Source§impl SystemImpl
impl SystemImpl
pub fn read(&self, fd: RawFd, buf: &mut [u8]) -> Result<isize>
pub fn write(&self, fd: RawFd, buf: &[u8]) -> Result<isize>
pub fn close(&self, fd: RawFd) -> Result<i32>
pub fn clock_gettime( &self, clockid: clockid_t, value: &mut timespec, ) -> Result<i32>
pub fn clock_getres( &self, clockid: clockid_t, res: &mut timespec, ) -> Result<i32>
pub fn pollfd_create(&self, flags: Fd) -> Result<i32>
pub fn pollfd_add( &self, pfd: RawFd, fd: RawFd, events: Io, data: u64, ) -> Result<i32>
pub fn pollfd_mod( &self, pfd: RawFd, fd: RawFd, events: Io, data: u64, ) -> Result<i32>
pub fn pollfd_del(&self, pfd: RawFd, fd: RawFd) -> Result<i32>
pub fn pollfd_wait( &self, pfd: RawFd, events: &mut [PollEvent], timeout: i32, ) -> Result<i32>
pub fn timerfd_create(&self, clockid: i32, flags: Fd) -> Result<i32>
pub fn timerfd_settime( &self, fd: RawFd, flags: Fd, new_value: &itimerspec, old_value: Option<&mut itimerspec>, ) -> Result<i32>
pub fn timerfd_gettime( &self, fd: RawFd, curr_value: &mut itimerspec, ) -> Result<i32>
pub fn timerfd_read(&self, fd: RawFd) -> Result<u64>
pub fn eventfd_create(&self, flags: Fd) -> Result<i32>
pub fn eventfd_write(&self, fd: RawFd, count: u64) -> Result<i32>
pub fn eventfd_read(&self, fd: RawFd) -> Result<u64>
pub fn signalfd_create(&self, signal: u32, flags: Fd) -> Result<i32>
pub fn signalfd_read(&self, fd: RawFd) -> Result<u32>
Trait Implementations§
Source§impl Interface for SystemImpl
impl Interface for SystemImpl
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(system: *mut CInterface)
unsafe fn free_native(system: *mut CInterface)
Return a C-compatible spa_interface pointer Read more
fn type_id(&self) -> TypeIdwhere
Self: 'static,
impl Send for SystemImpl
impl Sync for SystemImpl
Auto Trait Implementations§
impl Freeze for SystemImpl
impl !RefUnwindSafe for SystemImpl
impl Unpin for SystemImpl
impl !UnwindSafe for SystemImpl
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