Struct BinHoc5

Source
pub struct BinHoc5<A: Encode + Decode, B: Encode + Decode, C: Encode + Decode, D2: Encode + Decode, E2: Encode + Decode>(pub A, pub B, pub C, pub D2, pub E2);

Tuple Fields§

§0: A§1: B§2: C§3: D2§4: E2

Trait Implementations§

Source§

impl<'__de, A, B, C, D2, E2> BorrowDecode<'__de> for BinHoc5<A, B, C, D2, E2>
where A: BorrowDecode<'__de> + Encode + Decode, B: BorrowDecode<'__de> + Encode + Decode, C: BorrowDecode<'__de> + Encode + Decode, D2: BorrowDecode<'__de> + Encode + Decode, E2: BorrowDecode<'__de> + Encode + Decode,

Source§

fn borrow_decode<__D: BorrowDecoder<'__de>>( decoder: &mut __D, ) -> Result<Self, DecodeError>

Attempt to decode this type with the given BorrowDecode.
Source§

impl<A, B, C, D2, E2> Decode for BinHoc5<A, B, C, D2, E2>
where A: Decode + Encode + Decode, B: Decode + Encode + Decode, C: Decode + Encode + Decode, D2: Decode + Encode + Decode, E2: Decode + Encode + Decode,

Source§

fn decode<__D: Decoder>(decoder: &mut __D) -> Result<Self, DecodeError>

Attempt to decode this type with the given Decode.
Source§

impl<A, B, C, D2, E2> Encode for BinHoc5<A, B, C, D2, E2>
where A: Encode + Encode + Decode, B: Encode + Encode + Decode, C: Encode + Encode + Decode, D2: Encode + Encode + Decode, E2: Encode + Encode + Decode,

Source§

fn encode<__E: Encoder>(&self, encoder: &mut __E) -> Result<(), EncodeError>

Encode a given type.
Source§

impl<State, A, B, C, D2, E2, Body> FromRequest<State, Body> for BinHoc5<A, B, C, D2, E2>
where State: Sync, <Body as HttpBody>::Data: Send, Body: HttpBody + Send + 'static, A: Encode + Decode, B: Encode + Decode, C: Encode + Decode, D2: Encode + Decode, E2: Encode + Decode,

Source§

type Rejection = StatusCode

If the extractor fails it’ll use this “rejection” type. A rejection is a kind of error that can be converted into a response.
Source§

fn from_request<'life0, 'async_trait>( req: Request<Body>, _: &'life0 State, ) -> Pin<Box<dyn Future<Output = Result<Self, Self::Rejection>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Perform the extraction.

Auto Trait Implementations§

§

impl<A, B, C, D2, E2> Freeze for BinHoc5<A, B, C, D2, E2>
where A: Freeze, B: Freeze, C: Freeze, D2: Freeze, E2: Freeze,

§

impl<A, B, C, D2, E2> RefUnwindSafe for BinHoc5<A, B, C, D2, E2>

§

impl<A, B, C, D2, E2> Send for BinHoc5<A, B, C, D2, E2>
where A: Send, B: Send, C: Send, D2: Send, E2: Send,

§

impl<A, B, C, D2, E2> Sync for BinHoc5<A, B, C, D2, E2>
where A: Sync, B: Sync, C: Sync, D2: Sync, E2: Sync,

§

impl<A, B, C, D2, E2> Unpin for BinHoc5<A, B, C, D2, E2>
where A: Unpin, B: Unpin, C: Unpin, D2: Unpin, E2: Unpin,

§

impl<A, B, C, D2, E2> UnwindSafe for BinHoc5<A, B, C, D2, E2>

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.