Struct cyfs_base::ObjectMapRootHolder 
source · [−]pub struct ObjectMapRootHolder { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Clone for ObjectMapRootHolder
 
impl Clone for ObjectMapRootHolder
sourcefn clone(&self) -> ObjectMapRootHolder
 
fn clone(&self) -> ObjectMapRootHolder
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 more
Auto Trait Implementations
impl !RefUnwindSafe for ObjectMapRootHolder
impl Send for ObjectMapRootHolder
impl Sync for ObjectMapRootHolder
impl Unpin for ObjectMapRootHolder
impl !UnwindSafe for ObjectMapRootHolder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more