pub struct FileDescriptorEvent<'a> { /* private fields */ }Expand description
Describes an event on a FileDescriptor.
Implementations§
Source§impl FileDescriptorEvent<'_>
impl FileDescriptorEvent<'_>
Sourcepub fn originates_from(&self, file_descriptor: &FileDescriptor) -> bool
pub fn originates_from(&self, file_descriptor: &FileDescriptor) -> bool
Returns true if the FileDescriptorEvent originated from the provided
FileDescriptor, otherwise false.
Sourcepub unsafe fn native_fd_handle(&self) -> i32
pub unsafe fn native_fd_handle(&self) -> i32
Returns the native handle of the corresponding FileDescriptor
§Safety
- the user must not modify or close the provided native handle
Auto Trait Implementations§
impl<'a> Freeze for FileDescriptorEvent<'a>
impl<'a> RefUnwindSafe for FileDescriptorEvent<'a>
impl<'a> !Send for FileDescriptorEvent<'a>
impl<'a> !Sync for FileDescriptorEvent<'a>
impl<'a> Unpin for FileDescriptorEvent<'a>
impl<'a> UnwindSafe for FileDescriptorEvent<'a>
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