pub struct DmcDsg { /* private fields */ }Implementations§
Source§impl DmcDsg
impl DmcDsg
pub fn new(stack: Arc<SharedCyfsStack>, dec_id: ObjectId) -> Self
pub async fn set_dmc_account( &self, dmc_account: &str, light_private_key: &str, ) -> BuckyResult<()>
pub async fn get_dmc_account(&self) -> BuckyResult<String>
pub async fn create_push_task( &self, chunk_list: Vec<ChunkId>, http_url: Option<String>, store_type: StoreType, ) -> BuckyResult<String>
pub async fn get_push_task_state( &self, task_id: &str, ) -> BuckyResult<DsgPushTaskState>
pub async fn create_pull_task(&self, task_id: &str) -> BuckyResult<String>
pub async fn get_pull_task_state( &self, task_id: &str, ) -> BuckyResult<DsgPullTaskState>
pub async fn create_recovery_task(&self) -> BuckyResult<String>
pub async fn get_recovery_task_state( &self, task_id: &str, ) -> BuckyResult<DsgRecoveryTaskState>
pub async fn get_task_list( &self, offset: u64, length: u64, ) -> BuckyResult<ResultList<Vec<String>>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DmcDsg
impl !RefUnwindSafe for DmcDsg
impl Send for DmcDsg
impl Sync for DmcDsg
impl Unpin for DmcDsg
impl !UnwindSafe for DmcDsg
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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