pub struct EpollEvent {
pub events: Opts,
/* private fields */
}Expand description
An event, such as that a file is available for reading.
Transmute compatible with libc::epoll_event
Fields§
§events: OptsImplementations§
Source§impl EpollEvent
impl EpollEvent
pub const fn zeroed() -> Self
Sourcepub fn fd(&self) -> RawFd
pub fn fd(&self) -> RawFd
The RawFd that this event is associated with.
For example if a Vec of sockets were added to an epoll instance,
this is the fd of the socket that is ready.
Do not create an OwnedRawFd (including File) out of this, as closing it
will close the file that was added to Epoll.
Trait Implementations§
Source§impl Clone for EpollEvent
impl Clone for EpollEvent
Source§fn clone(&self) -> EpollEvent
fn clone(&self) -> EpollEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EpollEvent
impl Debug for EpollEvent
Source§impl Hash for EpollEvent
impl Hash for EpollEvent
Source§impl PartialEq for EpollEvent
impl PartialEq for EpollEvent
impl Copy for EpollEvent
impl Eq for EpollEvent
impl StructuralPartialEq for EpollEvent
Auto Trait Implementations§
impl Freeze for EpollEvent
impl RefUnwindSafe for EpollEvent
impl !Send for EpollEvent
impl !Sync for EpollEvent
impl Unpin for EpollEvent
impl UnwindSafe for EpollEvent
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