pub struct DropboxBlockStore { /* private fields */ }
Implementations§
Source§impl DropboxBlockStore
impl DropboxBlockStore
pub fn new( token: &str, name: &str, node_id: &str, ) -> StoreResult<DropboxBlockStore>
Trait Implementations§
Source§impl BlockStore for DropboxBlockStore
impl BlockStore for DropboxBlockStore
Source§fn list_ring_ids(&self) -> StoreResult<Vec<(String, u64)>>
fn list_ring_ids(&self) -> StoreResult<Vec<(String, u64)>>
Get list of ring block identifiers. Read more
Source§fn get_ring(&self, ring_id: &str) -> StoreResult<(u64, ZeroingWords)>
fn get_ring(&self, ring_id: &str) -> StoreResult<(u64, ZeroingWords)>
Get/read the ring block by its id. Read more
Source§fn store_ring(&self, ring_id: &str, version: u64, raw: &[u8]) -> StoreResult<()>
fn store_ring(&self, ring_id: &str, version: u64, raw: &[u8]) -> StoreResult<()>
Set/write a ring block. Read more
Source§fn change_logs(&self) -> StoreResult<Vec<ChangeLog>>
fn change_logs(&self) -> StoreResult<Vec<ChangeLog>>
Get all the change logs of the store. Read more
Source§fn get_index(&self, _index_id: &str) -> StoreResult<Option<ZeroingWords>>
fn get_index(&self, _index_id: &str) -> StoreResult<Option<ZeroingWords>>
Get the index block of a specific client/user. Read more
Source§fn store_index(&self, _index_id: &str, _raw: &[u8]) -> StoreResult<()>
fn store_index(&self, _index_id: &str, _raw: &[u8]) -> StoreResult<()>
Store the index block of a specific client/user.
Source§fn add_block(&self, raw: &[u8]) -> StoreResult<String>
fn add_block(&self, raw: &[u8]) -> StoreResult<String>
Add a new data block to the store. Read more
Source§fn get_block(&self, block: &str) -> StoreResult<ZeroingWords>
fn get_block(&self, block: &str) -> StoreResult<ZeroingWords>
Get a block by its id.
Source§fn commit(&self, changes: &[Change]) -> StoreResult<()>
fn commit(&self, changes: &[Change]) -> StoreResult<()>
Commit a set of changes to the store. Read more
Source§fn update_change_log(&self, change_log: ChangeLog) -> StoreResult<()>
fn update_change_log(&self, change_log: ChangeLog) -> StoreResult<()>
Update changelog of other nodes. Read more
Auto Trait Implementations§
impl Freeze for DropboxBlockStore
impl !RefUnwindSafe for DropboxBlockStore
impl Send for DropboxBlockStore
impl Sync for DropboxBlockStore
impl Unpin for DropboxBlockStore
impl !UnwindSafe for DropboxBlockStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more