pub struct Event {
pub val: u32,
}Expand description
A kind of file descriptor created by eventfd.
The Event type isn’t currently written to by eventfd.
The interface is meant to keep track of objects associated
with a file descriptor. For more information see the man
page below:
Fields§
§val: u32Trait Implementations§
source§impl FileDescriptor for Event
impl FileDescriptor for Event
fn name(&self) -> &'static str
fn dup(&mut self) -> Result<Box<dyn FileDescriptor>>
fn is_tty(&self) -> bool
fn close<'tcx>(
self: Box<Self>,
_communicate_allowed: bool
) -> InterpResult<'tcx, Result<i32>>
fn as_file_handle<'tcx>(&self) -> InterpResult<'tcx, &FileHandle>
fn as_epoll_handle<'tcx>(&mut self) -> InterpResult<'tcx, &mut Epoll>
fn read<'tcx>(
&mut self,
_communicate_allowed: bool,
_bytes: &mut [u8]
) -> InterpResult<'tcx, Result<usize>>
fn write<'tcx>(
&self,
_communicate_allowed: bool,
_bytes: &[u8]
) -> InterpResult<'tcx, Result<usize>>
fn seek<'tcx>(
&mut self,
_communicate_allowed: bool,
_offset: SeekFrom
) -> InterpResult<'tcx, Result<u64>>
fn as_unix_host_fd(&self) -> Option<i32>
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes