Skip to main content

RequestPoll

Enum RequestPoll 

Source
pub enum RequestPoll<O: Operation, C, QE, CE> {
    Pending(Pending<O>),
    Ready(Completion<O, C, CE>),
    QueueError {
        pending: Pending<O>,
        error: QueueError<QE>,
    },
    Stale(StaleOperation<O>),
    NeedsReset(Pending<O>),
}
Expand description

Result of synchronously polling one typed request.

Variants§

§

Pending(Pending<O>)

No matching completion has arrived yet.

§

Ready(Completion<O, C, CE>)

Matching request reached a terminal result.

§

QueueError

Used-ring access failed; the pending token remains valid for retry.

Fields

§pending: Pending<O>

Original pending token.

§error: QueueError<QE>

Queue failure.

§

Stale(StaleOperation<O>)

Queue reset invalidated this operation.

§

NeedsReset(Pending<O>)

Queue health requires reset before more completion processing.

Auto Trait Implementations§

§

impl<O, C, QE, CE> Freeze for RequestPoll<O, C, QE, CE>
where O: Freeze, <O as Operation>::Output: Freeze, C: Freeze, QE: Freeze, CE: Freeze,

§

impl<O, C, QE, CE> RefUnwindSafe for RequestPoll<O, C, QE, CE>

§

impl<O, C, QE, CE> Send for RequestPoll<O, C, QE, CE>
where O: Send, <O as Operation>::Output: Send, C: Send, QE: Send, CE: Send,

§

impl<O, C, QE, CE> Sync for RequestPoll<O, C, QE, CE>
where O: Sync, <O as Operation>::Output: Sync, C: Sync, QE: Sync, CE: Sync,

§

impl<O, C, QE, CE> Unpin for RequestPoll<O, C, QE, CE>
where O: Unpin, <O as Operation>::Output: Unpin, C: Unpin, QE: Unpin, CE: Unpin,

§

impl<O, C, QE, CE> UnsafeUnpin for RequestPoll<O, C, QE, CE>

§

impl<O, C, QE, CE> UnwindSafe for RequestPoll<O, C, QE, CE>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.