Skip to main content

Admitted

Struct Admitted 

Source
pub struct Admitted<K, P, B> { /* private fields */ }
Expand description

A selected request whose guard has admitted it.

Implementations§

Source§

impl<K, P, B> Admitted<K, P, B>

Source

pub const fn body(&self) -> &B

Source

pub const fn body_mut(&mut self) -> &mut B

Source

pub fn into_body(self) -> B

Source

pub fn into_parts(self) -> (P, B)

Source

pub fn try_map_body<T, E>( self, f: impl FnOnce(B) -> Result<T, E>, ) -> Result<Admitted<K, P, T>, Failure<K, P, E>>

Source§

impl<P, B> Admitted<Duplex, P, B>

Source

pub fn build<T, E>( self, f: impl FnOnce(P) -> Result<T, E>, ) -> Result<(T, B), (E, B)>

Source§

impl<K, P, S> Admitted<K, P, Body<S>>

Source

pub fn ready(self) -> Ready<K, P, S>

Auto Trait Implementations§

§

impl<K, P, B> Forget for Admitted<K, P, B>

§

impl<K, P, B> Freeze for Admitted<K, P, B>
where P: Freeze, B: Freeze, PhantomData<fn() -> K>: Freeze,

§

impl<K, P, B> RefUnwindSafe for Admitted<K, P, B>

§

impl<K, P, B> Send for Admitted<K, P, B>
where P: Send, B: Send, PhantomData<fn() -> K>: Send,

§

impl<K, P, B> Sync for Admitted<K, P, B>
where P: Sync, B: Sync, PhantomData<fn() -> K>: Sync,

§

impl<K, P, B> Unpin for Admitted<K, P, B>
where P: Unpin, B: Unpin, PhantomData<fn() -> K>: Unpin,

§

impl<K, P, B> UnsafeUnpin for Admitted<K, P, B>

§

impl<K, P, B> UnwindSafe for Admitted<K, P, B>

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> Convert<T> for T

Source§

fn into(self) -> T

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.