[][src]Struct toql_rocket::counted::Counted

pub struct Counted<R>(pub R, pub Option<(u32, u32)>);

Struct that keeps a result with counting information.

Trait Implementations

impl<R: Debug> Debug for Counted<R>[src]

impl<'r, R: Responder<'r>> Responder<'r> for Counted<R>[src]

Creates a response and puts the counting information into the HTTP response headers, if there is some value.

The header X-Total-Count contains the first value of the tuple in Counted. The header X-Filtered-Count contains the second value of the tuple in Counted.

Auto Trait Implementations

impl<R> Send for Counted<R> where
    R: Send

impl<R> Sync for Counted<R> where
    R: Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input, 

impl<T> Same<T> for T

type Output = T

Should always be Self