Struct cyfs_lib::SharedCyfsStack
source · 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 more