Trait nuclear::body::JsonExt[][src]

pub trait JsonExt {
    #[must_use]
    fn parse_json<'r, 'life0, 'async_trait, T: Deserialize<'r>>(
        &'r mut self,
        parser: &'life0 JsonParser
    ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;

    where
        'r: 'async_trait,
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn json<'r, 'async_trait, T: Deserialize<'r>>(
        &'r mut self
    ) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;

    where
        'r: 'async_trait,
        T: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]
fn parse_json<'r, 'life0, 'async_trait, T: Deserialize<'r>>(
    &'r mut self,
    parser: &'life0 JsonParser
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
where
    'r: 'async_trait,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]
fn json<'r, 'async_trait, T: Deserialize<'r>>(
    &'r mut self
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
where
    'r: 'async_trait,
    T: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl JsonExt for Request[src]

fn parse_json<'r, 'life0, 'async_trait, T: Deserialize<'r>>(
    &'r mut self,
    parser: &'life0 JsonParser
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
where
    'r: 'async_trait,
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn json<'r, 'async_trait, T: Deserialize<'r>>(
    &'r mut self
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
where
    'r: 'async_trait,
    T: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...