pub fn from_fetch_response(fetch_response: FetchResponse<T>) -> Loadable<T> {
        use self::FetchResponse::*;
        match fetch_response {
            Success(t) => Loadable::Loaded(t),
            Error(_) => Loadable::Failed(None),
            Started => Loadable::Loading
        }
    }
/// Creates a loadable from a fetch response
Creates a loadable from a fetch response
Creates a loadable from a fetch response
pub fn from_fetch_response(fetch_response: FetchResponse<T>) -> Loadable<T> {
        use self::FetchResponse::*;
        match fetch_response {
            Success(t) => Loadable::Loaded(t),
            Error(_) => Loadable::Failed(None),
            Started => Loadable::Loading
        }
    }
pub fn from_fetch_response ( fetch_response : FetchResponse < T > ) -> Loadable < T > { use self :: FetchResponse :: * ; match fetch_response { Success ( t ) => Loadable :: Loaded ( t ) , Error ( _ ) => Loadable :: Failed ( None ) , Started => Loadable :: Loading } }
Creates a loadable from a fetch response
Creates a loadable from a fetch response
fetch_response
FetchResponse<T>
fetch_response
FetchResponse<T>