[−][src]Struct ledb_actix::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
fn started(&mut self, ctx: &mut Self::Context)
[src]
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
[src]
fn stopped(&mut self, ctx: &mut Self::Context)
[src]
fn start(self) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
[src]
Self: Actor<Context = Context<Self>>,
fn start_default() -> Addr<Self> where
Self: Actor<Context = Context<Self>> + Default,
[src]
Self: Actor<Context = Context<Self>> + Default,
fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self> where
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
Self: Actor<Context = Context<Self>>,
[src]
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
Self: Actor<Context = Context<Self>>,
fn create<F>(f: F) -> Addr<Self> where
F: FnOnce(&mut Context<Self>) -> Self,
Self: Actor<Context = Context<Self>>,
[src]
F: FnOnce(&mut Context<Self>) -> Self,
Self: Actor<Context = Context<Self>>,
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.
fn handle(
&mut self,
DeleteMsg: DeleteMsg,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
DeleteMsg: DeleteMsg,
_: &mut Self::Context
) -> Self::Result
impl Handler<DropCollectionMsg> for Storage
[src]
type Result = <DropCollectionMsg as Message>::Result
The type of value that this handler will return.
fn handle(
&mut self,
DropCollectionMsg: DropCollectionMsg,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
DropCollectionMsg: DropCollectionMsg,
_: &mut Self::Context
) -> Self::Result
impl Handler<DropIndexMsg> for Storage
[src]
type Result = <DropIndexMsg as Message>::Result
The type of value that this handler will return.
fn handle(
&mut self,
DropIndexMsg: DropIndexMsg,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
DropIndexMsg: DropIndexMsg,
_: &mut Self::Context
) -> Self::Result
impl Handler<EnsureCollectionMsg> for Storage
[src]
type Result = <EnsureCollectionMsg as Message>::Result
The type of value that this handler will return.
fn handle(
&mut self,
EnsureCollectionMsg: EnsureCollectionMsg,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
EnsureCollectionMsg: EnsureCollectionMsg,
_: &mut Self::Context
) -> Self::Result
impl Handler<EnsureIndexMsg> for Storage
[src]
type Result = <EnsureIndexMsg as Message>::Result
The type of value that this handler will return.
fn handle(
&mut self,
EnsureIndexMsg: EnsureIndexMsg,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
EnsureIndexMsg: EnsureIndexMsg,
_: &mut Self::Context
) -> Self::Result
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.
fn handle(&mut self, FindMsg: FindMsg<T>, _: &mut Self::Context) -> Self::Result
[src]
impl Handler<GetCollections> for Storage
[src]
type Result = <GetCollections as Message>::Result
The type of value that this handler will return.
fn handle(&mut self, _: GetCollections, _: &mut Self::Context) -> Self::Result
[src]
impl Handler<GetIndexesMsg> for Storage
[src]
type Result = <GetIndexesMsg as Message>::Result
The type of value that this handler will return.
fn handle(
&mut self,
GetIndexesMsg: GetIndexesMsg,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
GetIndexesMsg: GetIndexesMsg,
_: &mut Self::Context
) -> Self::Result
impl Handler<GetInfo> for Storage
[src]
type Result = <GetInfo as Message>::Result
The type of value that this handler will return.
fn handle(&mut self, _: GetInfo, _: &mut Self::Context) -> Self::Result
[src]
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.
fn handle(&mut self, GetMsg: GetMsg<T>, _: &mut Self::Context) -> Self::Result
[src]
impl Handler<GetStats> for Storage
[src]
type Result = <GetStats as Message>::Result
The type of value that this handler will return.
fn handle(&mut self, _: GetStats, _: &mut Self::Context) -> Self::Result
[src]
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.
fn handle(
&mut self,
InsertMsg: InsertMsg<T>,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
InsertMsg: InsertMsg<T>,
_: &mut Self::Context
) -> Self::Result
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.
fn handle(&mut self, PutMsg: PutMsg<T>, _: &mut Self::Context) -> Self::Result
[src]
impl Handler<RemoveMsg> for Storage
[src]
type Result = <RemoveMsg as Message>::Result
The type of value that this handler will return.
fn handle(
&mut self,
RemoveMsg: RemoveMsg,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
RemoveMsg: RemoveMsg,
_: &mut Self::Context
) -> Self::Result
impl Handler<SetIndexesMsg> for Storage
[src]
type Result = <SetIndexesMsg as Message>::Result
The type of value that this handler will return.
fn handle(
&mut self,
SetIndexesMsg: SetIndexesMsg,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
SetIndexesMsg: SetIndexesMsg,
_: &mut Self::Context
) -> Self::Result
impl Handler<UpdateMsg> for Storage
[src]
type Result = <UpdateMsg as Message>::Result
The type of value that this handler will return.
fn handle(
&mut self,
UpdateMsg: UpdateMsg,
_: &mut Self::Context
) -> Self::Result
[src]
&mut self,
UpdateMsg: UpdateMsg,
_: &mut Self::Context
) -> Self::Result
impl StorageAddrExt<Storage> for Addr<Storage>
[src]
fn get_storage_addr<M, T, E>(&self) -> &Addr<Storage> where
Storage: Handler<M>,
M: Message<Result = Result<T, E>> + Send,
T: Send + 'static,
E: Send + 'static,
[src]
Storage: Handler<M>,
M: Message<Result = Result<T, E>> + Send,
T: Send + 'static,
E: Send + 'static,
fn send_query<M, T, E>(
&self,
msg: M
) -> Pin<Box<dyn Future<Output = Result<T, Either<MailboxError, E>>> + Send>> where
A: Handler<M> + Send,
A::Context: ToEnvelope<A, M>,
M: Message<Result = Result<T, E>> + Send + 'static,
T: Send + 'static,
E: Send + 'static,
[src]
&self,
msg: M
) -> Pin<Box<dyn Future<Output = Result<T, Either<MailboxError, E>>> + Send>> where
A: Handler<M> + Send,
A::Context: ToEnvelope<A, M>,
M: Message<Result = Result<T, E>> + Send + 'static,
T: Send + 'static,
E: Send + 'static,
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]
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<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
T: 'a + Clone + Send + Sync,
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,