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 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_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_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
sourcefn clone(&self) -> SharedCyfsStack
fn clone(&self) -> SharedCyfsStack
Returns a copy of the value. Read more
1.0.0 · sourcefn 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
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be
Self