[][src]Struct ledb_actix::Storage

pub struct Storage(_);

Storage actor

Implementations

impl Storage[src]

pub fn new<P: AsRef<Path>>(path: P, opts: Options) -> LeResult<Self>[src]

Instantiate new storage actor using path to the database in filesystem

You can create multiple storage adapters using same path, actually all of them will use same storage instance.

pub fn start(self, threads: usize) -> Addr<Self>[src]

Start the actor with number of threads

Trait Implementations

impl Actor for Storage[src]

type Context = SyncContext<Self>

Actor execution context type

impl Clone for Storage[src]

impl Handler<DeleteMsg> for Storage[src]

type Result = <DeleteMsg as Message>::Result

The type of value that this handler will return.

impl Handler<DropCollectionMsg> for Storage[src]

type Result = <DropCollectionMsg as Message>::Result

The type of value that this handler will return.

impl Handler<DropIndexMsg> for Storage[src]

type Result = <DropIndexMsg as Message>::Result

The type of value that this handler will return.

impl Handler<EnsureCollectionMsg> for Storage[src]

type Result = <EnsureCollectionMsg as Message>::Result

The type of value that this handler will return.

impl Handler<EnsureIndexMsg> for Storage[src]

type Result = <EnsureIndexMsg as Message>::Result

The type of value that this handler will return.

impl<T: DeserializeOwned + Document + 'static> Handler<FindMsg<T>> for Storage[src]

type Result = <FindMsg<T> as Message>::Result

The type of value that this handler will return.

impl Handler<GetCollections> for Storage[src]

type Result = <GetCollections as Message>::Result

The type of value that this handler will return.

impl Handler<GetIndexesMsg> for Storage[src]

type Result = <GetIndexesMsg as Message>::Result

The type of value that this handler will return.

impl Handler<GetInfo> for Storage[src]

type Result = <GetInfo as Message>::Result

The type of value that this handler will return.

impl<T: DeserializeOwned + Document + 'static> Handler<GetMsg<T>> for Storage[src]

type Result = <GetMsg<T> as Message>::Result

The type of value that this handler will return.

impl Handler<GetStats> for Storage[src]

type Result = <GetStats as Message>::Result

The type of value that this handler will return.

impl<T: Serialize + Document> Handler<InsertMsg<T>> for Storage[src]

type Result = <InsertMsg<T> as Message>::Result

The type of value that this handler will return.

impl<T: Serialize + Document> Handler<PutMsg<T>> for Storage[src]

type Result = <PutMsg<T> as Message>::Result

The type of value that this handler will return.

impl Handler<RemoveMsg> for Storage[src]

type Result = <RemoveMsg as Message>::Result

The type of value that this handler will return.

impl Handler<SetIndexesMsg> for Storage[src]

type Result = <SetIndexesMsg as Message>::Result

The type of value that this handler will return.

impl Handler<UpdateMsg> for Storage[src]

type Result = <UpdateMsg as Message>::Result

The type of value that this handler will return.

impl StorageAddrExt<Storage> for Addr<Storage>[src]

Auto Trait Implementations

impl RefUnwindSafe for Storage

impl Send for Storage

impl Sync for Storage

impl Unpin for Storage

impl UnwindSafe for Storage

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<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

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

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

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> SafeBorrow<T> for T where
    T: ?Sized

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>,