Struct cyfs_lib::ObjectCacheData
source · [−]pub struct ObjectCacheData {
pub protocol: NONProtocol,
pub source: DeviceId,
pub object_id: ObjectId,
pub dec_id: Option<ObjectId>,
pub object_raw: Option<Vec<u8>>,
pub object: Option<Arc<AnyNamedObject>>,
pub flags: u32,
pub create_time: u64,
pub update_time: u64,
pub insert_time: u64,
pub rank: u8,
}
Fields
protocol: NONProtocol
source: DeviceId
object_id: ObjectId
dec_id: Option<ObjectId>
object_raw: Option<Vec<u8>>
object: Option<Arc<AnyNamedObject>>
flags: u32
create_time: u64
update_time: u64
insert_time: u64
rank: u8
Implementations
sourceimpl ObjectCacheData
impl ObjectCacheData
pub fn rebuild_object(&mut self) -> BuckyResult<()>
pub fn release_object(&mut self)
pub fn update_insert_time(&mut self)
Trait Implementations
sourceimpl Clone for ObjectCacheData
impl Clone for ObjectCacheData
sourcefn clone(&self) -> ObjectCacheData
fn clone(&self) -> ObjectCacheData
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
sourceimpl Display for ObjectCacheData
impl Display for ObjectCacheData
sourceimpl From<NamedObjectCacheInsertObjectRequest> for ObjectCacheData
impl From<NamedObjectCacheInsertObjectRequest> for ObjectCacheData
sourcefn from(req: NamedObjectCacheInsertObjectRequest) -> Self
fn from(req: NamedObjectCacheInsertObjectRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ObjectCacheData
impl Send for ObjectCacheData
impl Sync for ObjectCacheData
impl Unpin for ObjectCacheData
impl UnwindSafe for ObjectCacheData
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