Enum cyfs_base::ObjectMapOpEnv
source · pub enum ObjectMapOpEnv {
Path(ObjectMapPathOpEnvRef),
Single(ObjectMapSingleOpEnvRef),
IsolatePath(ObjectMapIsolatePathOpEnvRef),
}
Variants§
Path(ObjectMapPathOpEnvRef)
Single(ObjectMapSingleOpEnvRef)
IsolatePath(ObjectMapIsolatePathOpEnvRef)
Implementations§
source§impl ObjectMapOpEnv
impl ObjectMapOpEnv
pub fn sid(&self) -> u64
pub fn op_env_type(&self) -> ObjectMapOpEnvType
pub fn path_op_env(&self, sid: u64) -> BuckyResult<ObjectMapPathOpEnvRef>
pub fn single_op_env(&self, sid: u64) -> BuckyResult<ObjectMapSingleOpEnvRef>
pub fn isolate_path_op_env( &self, sid: u64 ) -> BuckyResult<ObjectMapIsolatePathOpEnvRef>
pub async fn get_current_root(&self) -> BuckyResult<ObjectId>
pub async fn update(&self) -> BuckyResult<ObjectId>
pub async fn commit(self) -> BuckyResult<ObjectId>
pub fn abort(self) -> BuckyResult<()>
pub fn is_dropable(&self) -> bool
Trait Implementations§
source§impl Clone for ObjectMapOpEnv
impl Clone for ObjectMapOpEnv
source§fn clone(&self) -> ObjectMapOpEnv
fn clone(&self) -> ObjectMapOpEnv
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