Struct rusteron_media_driver::Pollfd
source · pub struct Pollfd { /* private fields */ }
Implementations§
source§impl Pollfd
impl Pollfd
pub fn new( fd: c_int, events: c_short, revents: c_short, ) -> Result<Self, AeronCError>
pub fn new_zeroed() -> Result<Self, AeronCError>
pub fn fd(&self) -> c_int
pub fn events(&self) -> c_short
pub fn revents(&self) -> c_short
pub fn aeron_poll( &self, nfds: c_ulong, timeout: c_int, ) -> Result<i32, AeronCError>
pub fn get_inner(&self) -> *mut pollfd
Trait Implementations§
source§impl Default for Pollfd
impl Default for Pollfd
This will create an instance where the struct is zeroed, use with care
Auto Trait Implementations§
impl Freeze for Pollfd
impl !RefUnwindSafe for Pollfd
impl !Send for Pollfd
impl !Sync for Pollfd
impl Unpin for Pollfd
impl !UnwindSafe for Pollfd
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)