[−][src]Struct vmm_sys_util::poll::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.
Auto Trait Implementations
impl RefUnwindSafe for WatchingEvents
impl Send for WatchingEvents
impl Sync for WatchingEvents
impl Unpin for WatchingEvents
impl UnwindSafe for WatchingEvents
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,
pub 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.
pub 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>,