[−][src]Trait loader_rs::LoaderTrait
Required methods
fn load_from_string(content: String) -> Result<T, LoaderError<FE>> where
Self: Sized,
Self: Sized,
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,
Self: Sized,
fn load_with_timeout<R: AsRef<str>>(
&self,
url: R,
timeout: Duration
) -> Result<T, LoaderError<FE>>
&self,
url: R,
timeout: Duration
) -> Result<T, LoaderError<FE>>
Implementors
impl LoaderTrait<RustType, ()> for Loader<RustType, ()>
[src]
fn load_from_string(content: String) -> Result<RustType, LoaderError<()>> where
Self: Sized,
[src]
Self: Sized,
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]
Self: Sized,
fn load_with_timeout<R: AsRef<str>>(
&self,
url: R,
timeout: Duration
) -> Result<T, LoaderError<FE>>
[src]
&self,
url: R,
timeout: Duration
) -> Result<T, LoaderError<FE>>
impl LoaderTrait<JsonValue, Error> for Loader<JsonValue, Error>
[src]
fn load_from_string(content: String) -> Result<JsonValue, LoaderError<Error>> where
Self: Sized,
[src]
Self: Sized,
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]
Self: Sized,
fn load_with_timeout<R: AsRef<str>>(
&self,
url: R,
timeout: Duration
) -> Result<T, LoaderError<FE>>
[src]
&self,
url: R,
timeout: Duration
) -> Result<T, LoaderError<FE>>
impl LoaderTrait<Value, Error> for Loader<Value, Error>
[src]
fn load_from_string(content: String) -> Result<Value, LoaderError<Error>> where
Self: Sized,
[src]
Self: Sized,
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]
Self: Sized,
fn load_with_timeout<R: AsRef<str>>(
&self,
url: R,
timeout: Duration
) -> Result<T, LoaderError<FE>>
[src]
&self,
url: R,
timeout: Duration
) -> Result<T, LoaderError<FE>>
impl LoaderTrait<Value, Error> for Loader<Value, Error>
[src]
fn load_from_string(content: String) -> Result<Value, LoaderError<Error>> where
Self: Sized,
[src]
Self: Sized,
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]
Self: Sized,
fn load_with_timeout<R: AsRef<str>>(
&self,
url: R,
timeout: Duration
) -> Result<T, LoaderError<FE>>
[src]
&self,
url: R,
timeout: Duration
) -> Result<T, LoaderError<FE>>