State

Enum State 

Source
enum State<S: Service<Req>, Req> {
    NotReady {
        svc: S,
        req: Option<Req>,
    },
    Called {
        fut: S::Future,
    },
    Done,
}

Variants§

§

NotReady

Fields

§svc: S
§req: Option<Req>
§

Called

Fields

§fut: S::Future
§

Done

Implementations§

Source§

impl<S: Service<Req>, Req> State<S, Req>

Source

const fn not_ready(svc: S, req: Option<Req>) -> Self

Source

const fn called(fut: S::Future) -> Self

Trait Implementations§

Source§

impl<S, Req> Debug for State<S, Req>
where S: Service<Req> + Debug, Req: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'__pin, S: Service<Req>, Req> Unpin for State<S, Req>
where PinnedFieldsOf<__Origin<'__pin, S, Req>>: Unpin,

Auto Trait Implementations§

§

impl<S, Req> Freeze for State<S, Req>
where S: Freeze, <S as Service<Req>>::Future: Freeze, Req: Freeze,

§

impl<S, Req> RefUnwindSafe for State<S, Req>
where S: RefUnwindSafe, <S as Service<Req>>::Future: RefUnwindSafe, Req: RefUnwindSafe,

§

impl<S, Req> Send for State<S, Req>
where S: Send, <S as Service<Req>>::Future: Send, Req: Send,

§

impl<S, Req> Sync for State<S, Req>
where S: Sync, <S as Service<Req>>::Future: Sync, Req: Sync,

§

impl<S, Req> UnwindSafe for State<S, Req>
where S: UnwindSafe, <S as Service<Req>>::Future: UnwindSafe, Req: UnwindSafe,

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
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.

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.