Struct cyfs_base::ObjectMapRootHolder
source · pub struct ObjectMapRootHolder { /* private fields */ }
Implementations§
source§impl ObjectMapRootHolder
impl ObjectMapRootHolder
pub fn new( dec_id: Option<ObjectId>, root: ObjectId, event: ObjectMapRootEventRef ) -> Self
pub fn get_current_root(&self) -> ObjectId
pub async fn direct_reload_root(&self, new_root_id: ObjectId)
pub async fn update_root<F, Fut>( &self, update_root_fn: F ) -> BuckyResult<ObjectId>where F: FnOnce(ObjectId) -> Fut, Fut: Future<Output = BuckyResult<ObjectId>>,
Trait Implementations§
source§impl Clone for ObjectMapRootHolder
impl Clone for ObjectMapRootHolder
source§fn clone(&self) -> ObjectMapRootHolder
fn clone(&self) -> ObjectMapRootHolder
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