Struct mio::poll::ReadinessQueue
source · [−]struct ReadinessQueue {
inner: Arc<ReadinessQueueInner>,
}
Fields
inner: Arc<ReadinessQueueInner>
Implementations
sourceimpl ReadinessQueue
impl ReadinessQueue
sourcefn new() -> Result<ReadinessQueue>
fn new() -> Result<ReadinessQueue>
Create a new ReadinessQueue
.
sourcefn prepare_for_sleep(&self) -> bool
fn prepare_for_sleep(&self) -> bool
Prepare the queue for the Poll::poll
thread to block in the system
selector. This involves changing head_readiness
to sleep_marker
.
Returns true if successful and poll
can block.
Trait Implementations
sourceimpl Clone for ReadinessQueue
impl Clone for ReadinessQueue
sourcefn clone(&self) -> ReadinessQueue
fn clone(&self) -> ReadinessQueue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Drop for ReadinessQueue
impl Drop for ReadinessQueue
impl Send for ReadinessQueue
impl Sync for ReadinessQueue
Auto Trait Implementations
impl !RefUnwindSafe for ReadinessQueue
impl Unpin for ReadinessQueue
impl !UnwindSafe for ReadinessQueue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more