[][src]Trait loader_rs::LoaderTrait

pub trait LoaderTrait<T, FE>: Default + Sync + Send + LoaderInternal<T, FE> where
    T: Clone + Debug,
    FE: 'static + Debug + Sync + Send,
    LoaderError<FE>: From<FE>, 
{ fn load_from_string(content: String) -> Result<T, LoaderError<FE>>
    where
        Self: Sized
; fn load<R: AsRef<str>>(&self, url: R) -> Result<T, LoaderError<FE>> { ... }
fn extract_fragment(value: Arc<T>, url: &Url) -> T
    where
        Self: Sized
, { ... }
fn load_with_timeout<R: AsRef<str>>(
        &self,
        url: R,
        timeout: Duration
    ) -> Result<T, LoaderError<FE>> { ... } }

Required methods

fn load_from_string(content: String) -> Result<T, LoaderError<FE>> where
    Self: Sized

Loading content...

Provided methods

fn load<R: AsRef<str>>(&self, url: R) -> Result<T, LoaderError<FE>>

fn extract_fragment(value: Arc<T>, url: &Url) -> T where
    Self: Sized

fn load_with_timeout<R: AsRef<str>>(
    &self,
    url: R,
    timeout: Duration
) -> Result<T, LoaderError<FE>>

Loading content...

Implementors

impl LoaderTrait<RustType, ()> for Loader<RustType, ()>[src]

fn load<R: AsRef<str>>(&self, url: R) -> Result<T, LoaderError<FE>>[src]

fn extract_fragment(value: Arc<T>, url: &Url) -> T where
    Self: Sized
[src]

fn load_with_timeout<R: AsRef<str>>(
    &self,
    url: R,
    timeout: Duration
) -> Result<T, LoaderError<FE>>
[src]

impl LoaderTrait<JsonValue, Error> for Loader<JsonValue, Error>[src]

fn load<R: AsRef<str>>(&self, url: R) -> Result<T, LoaderError<FE>>[src]

fn extract_fragment(value: Arc<T>, url: &Url) -> T where
    Self: Sized
[src]

fn load_with_timeout<R: AsRef<str>>(
    &self,
    url: R,
    timeout: Duration
) -> Result<T, LoaderError<FE>>
[src]

impl LoaderTrait<Value, Error> for Loader<Value, Error>[src]

fn load<R: AsRef<str>>(&self, url: R) -> Result<T, LoaderError<FE>>[src]

fn extract_fragment(value: Arc<T>, url: &Url) -> T where
    Self: Sized
[src]

fn load_with_timeout<R: AsRef<str>>(
    &self,
    url: R,
    timeout: Duration
) -> Result<T, LoaderError<FE>>
[src]

impl LoaderTrait<Value, Error> for Loader<Value, Error>[src]

fn load<R: AsRef<str>>(&self, url: R) -> Result<T, LoaderError<FE>>[src]

fn extract_fragment(value: Arc<T>, url: &Url) -> T where
    Self: Sized
[src]

fn load_with_timeout<R: AsRef<str>>(
    &self,
    url: R,
    timeout: Duration
) -> Result<T, LoaderError<FE>>
[src]

Loading content...