pub struct SharedCyfsStack { /* private fields */ }
Implementations§
pub async fn open_default(dec_id: Option<ObjectId>) -> BuckyResult<Self>
pub async fn open_default_with_ws_event( dec_id: Option<ObjectId>, ) -> BuckyResult<Self>
pub async fn open_runtime(dec_id: Option<ObjectId>) -> BuckyResult<Self>
pub async fn open_with_port( dec_id: Option<ObjectId>, http_port: u16, ws_port: u16, ) -> BuckyResult<Self>
pub async fn open(param: SharedCyfsStackParam) -> BuckyResult<Self>
pub fn sync_open(param: SharedCyfsStackParam) -> BuckyResult<Self>
pub async fn stop(&self)
pub fn param(&self) -> &SharedCyfsStackParam
pub async fn fork_with_new_dec( &self, dec_id: Option<ObjectId>, ) -> BuckyResult<Self>
pub async fn wait_online(&self, timeout: Option<Duration>) -> BuckyResult<()>
pub async fn online(&self) -> BuckyResult<()>
pub fn bind_dec(&self, dec_id: ObjectId)
pub fn dec_id(&self) -> Option<&ObjectId>
pub fn local_device_id(&self) -> DeviceId
pub fn local_device(&self) -> Device
pub fn non_service(&self) -> &NONRequestor
pub fn ndn_service(&self) -> &NDNRequestor
pub fn crypto(&self) -> &CryptoRequestor
pub fn util(&self) -> &UtilRequestor
pub fn trans(&self) -> &TransRequestor
pub fn sync(&self) -> &SyncRequestor
pub fn router_handlers(&self) -> &RouterHandlerManager
pub fn router_events(&self) -> &RouterEventManager
pub fn root_state(&self) -> &GlobalStateRequestor
pub fn root_state_stub( &self, target: Option<ObjectId>, target_dec_id: Option<ObjectId>, ) -> GlobalStateStub
pub fn root_state_accessor_stub( &self, target: Option<ObjectId>, target_dec_id: Option<ObjectId>, ) -> GlobalStateAccessorStub
pub fn root_state_meta(&self) -> &GlobalStateMetaRequestor
pub fn root_state_meta_stub( &self, target: Option<ObjectId>, target_dec_id: Option<ObjectId>, ) -> GlobalStateMetaStub
pub fn local_cache(&self) -> &GlobalStateRequestor
pub fn local_cache_stub( &self, target_dec_id: Option<ObjectId>, ) -> GlobalStateStub
pub fn local_cache_accessor_stub( &self, target: Option<ObjectId>, target_dec_id: Option<ObjectId>, ) -> GlobalStateAccessorStub
pub fn local_cache_meta(&self) -> &GlobalStateMetaRequestor
pub fn local_cache_meta_stub( &self, target_dec_id: Option<ObjectId>, ) -> GlobalStateMetaStub
pub fn global_state_storage( &self, category: GlobalStateCategory, path: impl Into<String>, content_type: ObjectMapSimpleContentType, ) -> StateStorage
pub fn global_state_storage_ex( &self, category: GlobalStateCategory, path: impl Into<String>, content_type: ObjectMapSimpleContentType, target: Option<ObjectId>, dec_id: Option<ObjectId>, ) -> StateStorage
pub fn uni_stack(&self) -> &UniCyfsStackRef
Trait Implementations§
Source§fn clone(&self) -> SharedCyfsStack
fn clone(&self) -> SharedCyfsStack
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read morefn non_service(&self) -> &NONOutputProcessorRef
fn ndn_service(&self) -> &NDNOutputProcessorRef
fn crypto_service(&self) -> &CryptoOutputProcessorRef
fn util_service(&self) -> &UtilOutputProcessorRef
fn trans_service(&self) -> &TransOutputProcessorRef
fn router_handlers(&self) -> &RouterHandlerManagerProcessorRef
fn router_events(&self) -> &RouterEventManagerProcessorRef
fn root_state(&self) -> &GlobalStateOutputProcessorRef
fn root_state_accessor(&self) -> &GlobalStateAccessorOutputProcessorRef
fn local_cache(&self) -> &GlobalStateOutputProcessorRef
fn local_cache_accessor(&self) -> &GlobalStateAccessorOutputProcessorRef
fn root_state_meta(&self) -> &GlobalStateMetaOutputProcessorRef
fn local_cache_meta(&self) -> &GlobalStateMetaOutputProcessorRef
Auto Trait Implementations§
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