[][src]Trait awmpde_structs::FromField

pub trait FromField: Sized {
    type Error: Into<Error>;
    type Future: Future<Output = Result<Self, Self::Error>> + 'static;

    const MIME: Either<Mime, Name<'static>>;

    fn from_field(field: Field) -> Self::Future;
}

Associated Types

type Error: Into<Error>

The associated error which can be returned.

type Future: Future<Output = Result<Self, Self::Error>> + 'static

Future that resolves to a Self

Loading content...

Associated Constants

const MIME: Either<Mime, Name<'static>>

Mime that should be in field

Loading content...

Required methods

fn from_field(field: Field) -> Self::Future

Loading content...

Implementations on Foreign Types

impl FromField for Vec<u8>[src]

type Error = Error

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

impl FromField for String[src]

type Error = Error

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

Loading content...

Implementors

impl FromField for BgrImage[src]

type Error = Error

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

impl FromField for BgraImage[src]

type Error = Error

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

impl FromField for DynamicImage[src]

type Error = Error

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

impl FromField for GrayAlphaImage[src]

type Error = Error

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

impl FromField for GrayImage[src]

type Error = Error

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

impl FromField for RgbImage[src]

type Error = Error

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

impl FromField for RgbaImage[src]

type Error = Error

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

impl<T> FromField for File<T> where
    T: FromField + 'static,
    T::Error: Debug
[src]

type Error = Error

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

impl<T: DeserializeOwned + 'static> FromField for Json<T>[src]

type Error = Error

type Future = LocalBoxFuture<'static, Result<Self, Self::Error>>

Loading content...