pub trait HostPollable {
    // Required methods
    fn ready(&mut self, self_: Resource<DynPollable>) -> Result<bool, Error>;
    fn block(&mut self, self_: Resource<DynPollable>) -> Result<(), Error>;
    fn drop(&mut self, rep: Resource<DynPollable>) -> Result<(), Error>;
}Required Methods§
Sourcefn ready(&mut self, self_: Resource<DynPollable>) -> Result<bool, Error>
 
fn ready(&mut self, self_: Resource<DynPollable>) -> Result<bool, Error>
Return the readiness of a pollable. This function never blocks.
Returns true when the pollable is ready, and false otherwise.
Sourcefn block(&mut self, self_: Resource<DynPollable>) -> Result<(), Error>
 
fn block(&mut self, self_: Resource<DynPollable>) -> Result<(), Error>
block returns immediately if the pollable is ready, and otherwise
blocks until ready.
This function is equivalent to calling poll.poll on a list
containing only this pollable.
fn drop(&mut self, rep: Resource<DynPollable>) -> Result<(), Error>
Implementations on Foreign Types§
Source§impl HostPollable for ResourceTable
 
impl HostPollable for ResourceTable
Source§impl<_T> HostPollable for &mut _Twhere
    _T: HostPollable + ?Sized,
 
impl<_T> HostPollable for &mut _Twhere
    _T: HostPollable + ?Sized,
Source§fn ready(&mut self, self_: Resource<DynPollable>) -> Result<bool, Error>
 
fn ready(&mut self, self_: Resource<DynPollable>) -> Result<bool, Error>
Return the readiness of a pollable. This function never blocks.
Returns true when the pollable is ready, and false otherwise.
Source§fn block(&mut self, self_: Resource<DynPollable>) -> Result<(), Error>
 
fn block(&mut self, self_: Resource<DynPollable>) -> Result<(), Error>
block returns immediately if the pollable is ready, and otherwise
blocks until ready.
This function is equivalent to calling poll.poll on a list
containing only this pollable.