[][src]Trait awmpde_structs::FromField

pub trait FromField: Sized {
    type Error: Into<Error>;
    type Future: Future<Output = Result<Self, Self::Error>> + 'static;
    pub fn from_field(field: Field) -> Self::Future;
}

Associated Types

type Error: Into<Error>[src]

The associated error which can be returned.

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

Future that resolves to a Self

Loading content...

Required methods

pub fn from_field(field: Field) -> Self::Future[src]

Loading content...

Implementations on Foreign Types

impl FromField for Vec<u8>[src]

type 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...