Struct t_rust_less_lib::block_store::dropbox::DropboxBlockStore
source · [−]pub struct DropboxBlockStore { /* private fields */ }
Implementations
sourceimpl DropboxBlockStore
impl DropboxBlockStore
pub fn new(
token: &str,
name: &str,
node_id: &str
) -> StoreResult<DropboxBlockStore>
Trait Implementations
sourceimpl BlockStore for DropboxBlockStore
impl BlockStore for DropboxBlockStore
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn change_logs(&self) -> StoreResult<Vec<ChangeLog>>
fn change_logs(&self) -> StoreResult<Vec<ChangeLog>>
Get all the change logs of the store. Read more
sourcefn 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
sourcefn 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. Read more
sourcefn 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
sourcefn get_block(&self, block: &str) -> StoreResult<ZeroingWords>
fn get_block(&self, block: &str) -> StoreResult<ZeroingWords>
Get a block by its id. Read more
sourcefn commit(&self, changes: &[Change]) -> StoreResult<()>
fn commit(&self, changes: &[Change]) -> StoreResult<()>
Commit a set of changes to the store. Read more
sourcefn 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 RefUnwindSafe for DropboxBlockStore
impl Send for DropboxBlockStore
impl Sync for DropboxBlockStore
impl Unpin for DropboxBlockStore
impl UnwindSafe for DropboxBlockStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
. Read morefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read morefn 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. Read morefn 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. Read more