[][src]Struct popol::Event

pub struct Event<'a> {
    pub writable: bool,
    pub readable: bool,
    pub hangup: bool,
    pub errored: bool,
    pub invalid: bool,
    pub source: &'a Source,
}

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

impl<'a> Debug for Event<'a>[src]

impl<'a> From<&'a Source> for Event<'a>[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.