[−][src]Trait loader_rs::loader::trait_::LoaderTrait
Required methods
fn load_from_bytes(&self, content: &[u8]) -> Result<T, LoaderError>
Provided methods
fn get_from_cache(&self, key: &Url) -> Option<Arc<T>>
fn save_in_cache(&self, key: &Url, value: &Arc<T>)
fn load_from_string(&self, content: &str) -> Result<T, LoaderError>
fn load(&self, url: &str) -> Result<Arc<T>, LoaderError>
fn load_with_timeout(
&self,
url: &str,
timeout: Duration
) -> Result<Arc<T>, LoaderError>
&self,
url: &str,
timeout: Duration
) -> Result<Arc<T>, LoaderError>
fn get_or_fetch_with_result(&self, key: &Url) -> Result<Arc<T>, LoaderError>
fn extract_fragment(
&self,
_fragment: &str,
value: Arc<T>
) -> Result<Arc<T>, LoaderError>
&self,
_fragment: &str,
value: Arc<T>
) -> Result<Arc<T>, LoaderError>
Implementors
impl LoaderTrait<Value> for SerdeJsonLoader
[src]
fn load_from_bytes(&self, content: &[u8]) -> Result<Value, LoaderError> where
Self: Sized,
[src]
Self: Sized,
impl LoaderTrait<Value> for SerdeYamlLoader
[src]
fn load_from_bytes(&self, content: &[u8]) -> Result<Value, LoaderError> where
Self: Sized,
[src]
Self: Sized,
impl LoaderTrait<JsonValue> for JsonLoader
[src]
fn load_from_string(&self, content: &str) -> Result<JsonValue, LoaderError> where
Self: Sized,
[src]
Self: Sized,
fn load_from_bytes(&self, content: &[u8]) -> Result<JsonValue, LoaderError> where
Self: Sized,
[src]
Self: Sized,
impl LoaderTrait<RustType> for RustTypeLoader
[src]
fn load_from_bytes(&self, content: &[u8]) -> Result<RustType, LoaderError> where
Self: Sized,
[src]
Self: Sized,
impl<T: JsonType + ToOwnedJsonType> LoaderTrait<T> for ConcreteJsonLoader<T>
[src]
default fn extract_fragment(
&self,
fragment: &str,
value: Arc<T>
) -> Result<Arc<T>, LoaderError>
[src]
&self,
fragment: &str,
value: Arc<T>
) -> Result<Arc<T>, LoaderError>