pub struct FullObject { /* private fields */ }
Implementations§
Source§impl FullObject
impl FullObject
pub fn new( id: ObjectId, last_updated: Option<Updatedness>, created_at: EventId, creation: Arc<dyn DynSized>, ) -> FullObject
pub fn from_parts( id: ObjectId, last_updated: Option<Updatedness>, created_at: EventId, creation: Arc<dyn DynSized>, changes: BTreeMap<EventId, Change>, ) -> FullObject
pub fn refcount(&self) -> usize
pub fn id(&self) -> ObjectId
pub fn last_updated(&self) -> Option<Updatedness>
pub fn creation_info(&self) -> CreationInfo
pub fn created_at(&self) -> EventId
pub fn changes_clone(&self) -> BTreeMap<EventId, Change>
pub fn extract_all_clone(&self) -> (CreationInfo, BTreeMap<EventId, Change>)
pub fn deep_size_of(&self) -> usize
pub fn apply<T: Object>( &self, id: EventId, event: Arc<T::Event>, updatedness: Option<Updatedness>, ) -> Result<bool>
pub fn recreate_at<T: Object>( &self, event_id: EventId, updatedness: Option<Updatedness>, ) -> Result<()>
pub fn recreate_with<T: Object>( &self, event_id: EventId, data: Arc<T>, updatedness: Option<Updatedness>, ) -> Option<Arc<T>>
pub fn required_binaries<T: Object>(&self) -> HashSet<BinPtr>
pub fn get_snapshot_at<T: Object>( &self, at: Bound<EventId>, ) -> Result<(EventId, Arc<T>)>
pub fn last_snapshot<T: Object>(&self) -> Result<Arc<T>>
Trait Implementations§
Source§impl Clone for FullObject
impl Clone for FullObject
Source§fn clone(&self) -> FullObject
fn clone(&self) -> FullObject
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FullObject
impl RefUnwindSafe for FullObject
impl Send for FullObject
impl Sync for FullObject
impl Unpin for FullObject
impl UnwindSafe for FullObject
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more