Struct vmm_sys_util::poll::WatchingEvents[][src]

pub struct WatchingEvents(_);

Watching events taken by PollContext.

Implementations

impl WatchingEvents[src]

pub fn empty() -> WatchingEvents[src]

Returns empty WatchingEvents.

pub fn new(raw: u32) -> WatchingEvents[src]

Creates a new WatchingEvents with a specified value.

Builds WatchingEvents from raw epoll_event.

Arguments

  • raw: the events to be created for watching.

pub fn set_read(self) -> WatchingEvents[src]

Sets read events.

Sets the events to be readable.

pub fn set_write(self) -> WatchingEvents[src]

Sets write events.

Sets the events to be writable.

pub fn get_raw(&self) -> u32[src]

Gets the underlying epoll events.

Trait Implementations

impl Clone for WatchingEvents[src]

impl Copy for WatchingEvents[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.