[][src]Struct warmy::json::Json

pub struct Json;

The JSON universal method. Use this with Storage::get_by or Storage::get_proxied_by to benefit from the automatic implementors.

Trait Implementations

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + for<'de> Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl PartialEq<Json> for Json[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Clone for Json[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for Json[src]

impl Copy for Json[src]

impl Debug for Json[src]

impl Hash for Json[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Json

impl Unpin for Json

impl Sync for Json

impl UnwindSafe for Json

impl RefUnwindSafe for Json

Blanket Implementations

impl<'a, T, C, M> Inspect<'a, C, (), M> for T[src]

impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T[src]

impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more

impl<C, K, T> Load<C, K, Json> for T where
    K: Key + Into<Option<PathBuf>>,
    T: 'static + Deserialize<'de>, 
[src]

type Error = JsonError

Type of error that might happen while loading.

fn reload(
    &self,
    key: K,
    storage: &mut Storage<C, K>,
    ctx: &mut C
) -> Result<Self, Self::Error>
[src]

Function called when a resource must be reloaded. Read more