[−][src]Struct sos_client::SourceRoot
Implementations
impl<V, Imp> SourceRoot<V, Imp> where
Imp: SourceTrait<Code = V>,
[src]
Imp: SourceTrait<Code = V>,
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]
Imp: SourceTrait,
pub fn load<P>(root: P, imp: Imp) -> Result<Self> where
P: AsRef<Path>,
V: DeserializeOwned,
[src]
P: AsRef<Path>,
V: DeserializeOwned,
pub fn save(&self) -> Result<()> where
V: Serialize,
[src]
V: Serialize,
Auto Trait Implementations
impl<V, Imp> RefUnwindSafe for SourceRoot<V, Imp> where
Imp: RefUnwindSafe,
V: RefUnwindSafe,
Imp: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, Imp> Send for SourceRoot<V, Imp> where
Imp: Send,
V: Send,
Imp: Send,
V: Send,
impl<V, Imp> Sync for SourceRoot<V, Imp> where
Imp: Sync,
V: Sync,
Imp: Sync,
V: Sync,
impl<V, Imp> Unpin for SourceRoot<V, Imp> where
Imp: Unpin,
V: Unpin,
Imp: Unpin,
V: Unpin,
impl<V, Imp> UnwindSafe for SourceRoot<V, Imp> where
Imp: UnwindSafe,
V: RefUnwindSafe + UnwindSafe,
Imp: UnwindSafe,
V: RefUnwindSafe + 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>,