[][src]Struct xaynet_server::storage::store::Store

pub struct Store<C, M> where
    C: CoordinatorStorage,
    M: ModelStorage
{ /* fields omitted */ }

A generic store.

Implementations

impl<C, M> Store<C, M> where
    C: CoordinatorStorage,
    M: ModelStorage
[src]

pub fn new(coordinator: C, model: M) -> Self[src]

Creates a new Store.

pub async fn is_ready(&mut self) -> StorageResult<()>[src]

Checks if the Store is ready to process requests.

Behavior

If the Store is ready to process requests, return StorageResult::Ok(()). If the Store cannot process requests because of a connection error, for example, return StorageResult::Err(error).

Trait Implementations

impl<C: Clone, M: Clone> Clone for Store<C, M> where
    C: CoordinatorStorage,
    M: ModelStorage
[src]

impl<C, M> CoordinatorStorage for Store<C, M> where
    C: CoordinatorStorage,
    M: ModelStorage
[src]

impl<C, M> ModelStorage for Store<C, M> where
    C: CoordinatorStorage,
    M: ModelStorage
[src]

Auto Trait Implementations

impl<C, M> RefUnwindSafe for Store<C, M> where
    C: RefUnwindSafe,
    M: RefUnwindSafe
[src]

impl<C, M> Send for Store<C, M>[src]

impl<C, M> Sync for Store<C, M>[src]

impl<C, M> Unpin for Store<C, M> where
    C: Unpin,
    M: Unpin
[src]

impl<C, M> UnwindSafe for Store<C, M> where
    C: UnwindSafe,
    M: UnwindSafe
[src]

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]