[][src]Struct seamless::router::Binary

pub struct Binary {
    pub bytes: Vec<u8>,
}

If the last argument to the handler is this, we'll assume that the user can provide arbitrary binary data, and we'll make that data available within the handler as bytes.

Fields

bytes: Vec<u8>

The bytes that were provided in the incoming http::Request

Trait Implementations

impl ApiBody for Binary[src]

impl Body for Binary[src]

type Error = ApiError

The type of the error returned if Self::get_body() fails.

Auto Trait Implementations

Blanket Implementations

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

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

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

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.