[][src]Struct sos_client::SourceRoot

pub struct SourceRoot<V, Imp> where
    Imp: SourceTrait
{ /* fields omitted */ }

Implementations

impl<V, Imp> SourceRoot<V, Imp> where
    Imp: SourceTrait<Code = V>, 
[src]

pub fn find<'a, K: AsRef<str>>(&'a mut self, key: K) -> Result<Option<&'a V>>[src]

pub fn find_mut<K: AsRef<str>>(&mut self, key: K) -> Result<Option<&mut V>>[src]

impl<V, Imp> SourceRoot<V, Imp> where
    Imp: SourceTrait
[src]

pub fn load<P>(root: P, imp: Imp) -> Result<Self> where
    P: AsRef<Path>,
    V: DeserializeOwned
[src]

pub fn save(&self) -> Result<()> where
    V: Serialize
[src]

Auto Trait Implementations

impl<V, Imp> RefUnwindSafe for SourceRoot<V, Imp> where
    Imp: RefUnwindSafe,
    V: RefUnwindSafe

impl<V, Imp> Send for SourceRoot<V, Imp> where
    Imp: Send,
    V: Send

impl<V, Imp> Sync for SourceRoot<V, Imp> where
    Imp: Sync,
    V: Sync

impl<V, Imp> Unpin for SourceRoot<V, Imp> where
    Imp: Unpin,
    V: Unpin

impl<V, Imp> UnwindSafe for SourceRoot<V, Imp> where
    Imp: UnwindSafe,
    V: RefUnwindSafe + UnwindSafe

Blanket Implementations

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

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

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

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

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

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.