[−][src]Struct popol::Event
A source readiness event.
Fields
writable: bool
The file is writable.
readable: bool
The file is readable.
hangup: bool
The file has be disconnected.
errored: bool
An error has occured on the file.
invalid: bool
The file is not valid.
source: &'a Source
The underlying source.
Implementations
impl<'a> Event<'a>
[src]
pub fn source<T: FromRawFd>(&self) -> T
[src]
Return the source from the underlying raw file descriptor.
pub fn is_err(&self) -> bool
[src]
Check whether the event is an error. Returns true if the underlying source is invalid, or if an error occured on it.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnwindSafe for Event<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,