[−][src]Struct loader_rs::Loader
Trait Implementations
impl<T: Debug, FE: Debug> Debug for Loader<T, FE> where
LoaderError<FE>: From<FE>,
[src]
LoaderError<FE>: From<FE>,
impl<T, FE> Default for Loader<T, FE> where
LoaderError<FE>: From<FE>,
[src]
LoaderError<FE>: From<FE>,
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,
fn load<R: AsRef<str>>(&self, url: R) -> Result<Arc<T>, LoaderError<FE>>
[src]
fn load_with_timeout<R: AsRef<str>>(
&self,
url: R,
timeout: Duration
) -> Result<Arc<T>, LoaderError<FE>>
[src]
&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>>
[src]
&self,
key: &Url,
fetcher: F
) -> Result<Arc<T>, LoaderError<FE>>
impl LoaderTrait<RustType, ()> for Loader<RustType, ()>
[src]
fn load_from_bytes(content: &[u8]) -> Result<RustType, LoaderError<()>> where
Self: Sized,
[src]
Self: Sized,
fn load_from_string(content: &str) -> Result<T, LoaderError<FE>> where
Self: Sized,
[src]
Self: Sized,
fn load<R: AsRef<str>>(&self, url: R) -> Result<Arc<T>, LoaderError<FE>>
[src]
fn load_with_timeout<R: AsRef<str>>(
&self,
url: R,
timeout: Duration
) -> Result<Arc<T>, LoaderError<FE>>
[src]
&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>>
[src]
&self,
key: &Url,
fetcher: F
) -> Result<Arc<T>, LoaderError<FE>>
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,
fn load_from_string(content: &str) -> Result<T, LoaderError<FE>> where
Self: Sized,
[src]
Self: Sized,
fn load<R: AsRef<str>>(&self, url: R) -> Result<Arc<T>, LoaderError<FE>>
[src]
fn load_with_timeout<R: AsRef<str>>(
&self,
url: R,
timeout: Duration
) -> Result<Arc<T>, LoaderError<FE>>
[src]
&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>>
[src]
&self,
key: &Url,
fetcher: F
) -> Result<Arc<T>, LoaderError<FE>>
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,
fn load_from_string(content: &str) -> Result<T, LoaderError<FE>> where
Self: Sized,
[src]
Self: Sized,
fn load<R: AsRef<str>>(&self, url: R) -> Result<Arc<T>, LoaderError<FE>>
[src]
fn load_with_timeout<R: AsRef<str>>(
&self,
url: R,
timeout: Duration
) -> Result<Arc<T>, LoaderError<FE>>
[src]
&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>>
[src]
&self,
key: &Url,
fetcher: F
) -> Result<Arc<T>, LoaderError<FE>>
Auto Trait Implementations
impl<T, FE> RefUnwindSafe for Loader<T, FE> where
FE: RefUnwindSafe,
FE: RefUnwindSafe,
impl<T, FE> Send for Loader<T, FE> where
FE: Send,
FE: Send,
impl<T, FE> Sync for Loader<T, FE> where
FE: Sync,
FE: Sync,
impl<T, FE> Unpin for Loader<T, FE> where
FE: Unpin,
FE: Unpin,
impl<T, FE> UnwindSafe for Loader<T, FE> where
FE: UnwindSafe,
FE: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,