[][src]Struct storaget::Storage

pub struct Storage<T> { /* fields omitted */ }

Methods

impl<'a, T: 'a> Storage<T> where
    T: StorageMember + Deserialize<'de> + Serialize
[src]

pub fn new(path: &'static str) -> Self[src]

pub fn load(path: &'static str) -> StorageResult<Self>[src]

pub fn get_by_id(&'a mut self, id: &str) -> StorageResult<DataObject<T>>[src]

pub fn add_to_storage(&'a mut self, new_object: T) -> StorageResult<()>[src]

Trait Implementations

impl<'a, T> IntoIterator for &'a mut Storage<T>[src]

type Item = DataObject<'a, T>

The type of the elements being iterated over.

type IntoIter = DataIter<'a, T>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<T> Send for Storage<T> where
    T: Send

impl<T> Sync for Storage<T> where
    T: Sync

impl<T> Unpin for Storage<T> where
    T: Unpin

impl<T> UnwindSafe for Storage<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for Storage<T> where
    T: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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]