[−][src]Trait loader_rs::LoaderTrait
Required methods
fn load_from_bytes(content: &[u8]) -> Result<T, LoaderError<FE>> where
Self: Sized,
Self: Sized,
Provided methods
fn load_from_string(content: &str) -> Result<T, LoaderError<FE>> where
Self: Sized,
Self: Sized,
fn load<R: AsRef<str>>(&self, url: R) -> Result<Arc<T>, LoaderError<FE>>
fn load_with_timeout<R: AsRef<str>>(
&self,
url: R,
timeout: Duration
) -> Result<Arc<T>, LoaderError<FE>>
&self,
url: R,
timeout: Duration
) -> Result<Arc<T>, LoaderError<FE>>
fn get_or_fetch_with_result<F: FnOnce(&Url) -> Result<T, LoaderError<FE>>>(
&self,
key: &Url,
fetcher: F
) -> Result<Arc<T>, LoaderError<FE>>
&self,
key: &Url,
fetcher: F
) -> Result<Arc<T>, LoaderError<FE>>
Implementors
impl LoaderTrait<RustType, ()> for Loader<RustType, ()>
[src]
fn load_from_bytes(content: &[u8]) -> Result<RustType, LoaderError<()>> where
Self: Sized,
[src]
Self: Sized,
impl LoaderTrait<Value, Error> for Loader<Value, Error>
[src]
fn load_from_bytes(content: &[u8]) -> Result<Value, LoaderError<Error>> where
Self: Sized,
[src]
Self: Sized,
impl LoaderTrait<Value, Error> for Loader<Value, Error>
[src]
fn load_from_bytes(content: &[u8]) -> Result<Value, LoaderError<Error>> where
Self: Sized,
[src]
Self: Sized,
impl LoaderTrait<JsonValue, Error> for Loader<JsonValue, Error>
[src]
fn load_from_string(content: &str) -> Result<JsonValue, LoaderError<Error>> where
Self: Sized,
[src]
Self: Sized,
fn load_from_bytes(content: &[u8]) -> Result<JsonValue, LoaderError<Error>> where
Self: Sized,
[src]
Self: Sized,