Skip to main content

CapturedDelta

Enum CapturedDelta 

Source
pub enum CapturedDelta {
Show 45 variants ReplayAddNodeWithIdIfMissing { id: String, url: String, position: [f32; 2], }, ReplayAssertRelationByIds { from_id: String, to_id: String, assertion: EdgeAssertion, }, ReplayRemoveNodeById { node_id: String, }, ReplayRetractRelationsByIds { from_id: String, to_id: String, selector: RelationSelector, }, ReplayAppendTraversalByIds { from_id: String, to_id: String, trigger: NavigationTrigger, timestamp_ms: u64, }, ReplaySetNodeTitleById { node_id: String, title: String, }, ReplaySetNodeUrlById { node_id: String, new_url: String, }, ReplaySetNodeImageById { node_id: String, role: ImageRole, image: ImageRef, }, ReplaySetNodeThumbnailById { node_id: String, png_bytes: Vec<u8>, width: u32, height: u32, }, ReplaySetNodeFaviconById { node_id: String, rgba: Vec<u8>, width: u32, height: u32, }, ReplaySetNodeMimeHintById { node_id: String, mime_hint: Option<String>, }, ReplaySetNodeNestedById { node_id: String, nested: Option<String>, }, ReplaySetNodePinnedById { node_id: String, is_pinned: bool, }, ReplaySetNodeFacetById { node_id: String, facet: String, value_json: String, }, ReplayRemoveNodeFacetById { node_id: String, facet: String, }, ReplayInsertNodeTagById { node_id: String, tag: String, }, ReplayRemoveNodeTagById { node_id: String, tag: String, }, ReplaySetNodeBodyById { node_id: String, body: Option<String>, }, ReplayNavigateNodeById { node_id: String, url: String, transition: TransitionKind, timestamp_ms: u64, last_session_visited: u64, }, ReplayBranchHistoryByIds { child_id: String, parent_id: String, }, ReplayNodeHistoryBackById { node_id: String, timestamp_ms: u64, }, ReplayNodeHistoryForwardById { node_id: String, timestamp_ms: u64, }, ReplayAppendNodePropertyById { node_id: String, property: NodeProperty, }, ReplayAddNodeClassificationById { node_id: String, classification: NodeClassification, }, ReplayRemoveNodeClassificationById { node_id: String, scheme: ClassificationScheme, value: String, }, ReplaySetNodeClassificationStatusById { node_id: String, scheme: ClassificationScheme, value: String, status: ClassificationStatus, }, ReplaySetNodePrimaryClassificationById { node_id: String, scheme: ClassificationScheme, value: String, }, ReplayRecordNodeDerivationById { node_id: String, derivation: NodeDerivation, }, ReplaySetNodeTagIconOverrideById { node_id: String, tag: String, icon: Option<BadgeIcon>, }, ReplaySetEdgeSemanticPredicateByIds { from_id: String, to_id: String, predicate: Option<String>, }, ReplayAssertSemanticPredicateByIds { from_id: String, to_id: String, predicate: String, }, ReplayAppendFrameLayoutHintById { node_id: String, hint: FrameLayoutHint, }, ReplayRemoveFrameLayoutHintById { node_id: String, hint_index: usize, }, ReplayMoveFrameLayoutHintById { node_id: String, from_index: usize, to_index: usize, }, ReplaySetFrameSplitOfferSuppressedById { node_id: String, suppressed: bool, }, ReplayUpdateNodeHistoryById { node_id: String, entries: Vec<String>, current_index: usize, }, ReplaySetImportRecords { import_records: Vec<ImportRecord>, }, ReplayTouchNodeLastVisitedById { node_id: String, timestamp_ms: u64, }, ReplayAddField { field: PersistedField, }, ReplayRetireFieldById { field_id: String, }, ReplayAddCoupling { coupling: PersistedCoupling, }, ReplaySetFieldCouplingStrengthByFieldId { field_id: String, strength: f32, }, ReplayActivateFieldById { field_id: String, }, ReplayRetractCouplingById { coupling_id: String, }, ReplaySetNodeContentById { node_id: String, content: Option<[u8; 32]>, },
}
Expand description

The stable-id, serializable mirror of the replayable graph deltas.

Variants§

§

ReplayAddNodeWithIdIfMissing

Fields

§position: [f32; 2]
§

ReplayAssertRelationByIds

Fields

§from_id: String
§to_id: String
§assertion: EdgeAssertion
§

ReplayRemoveNodeById

Fields

§node_id: String
§

ReplayRetractRelationsByIds

Fields

§from_id: String
§to_id: String
§

ReplayAppendTraversalByIds

Fields

§from_id: String
§to_id: String
§timestamp_ms: u64
§

ReplaySetNodeTitleById

Fields

§node_id: String
§title: String
§

ReplaySetNodeUrlById

Fields

§node_id: String
§new_url: String
§

ReplaySetNodeImageById

Fields

§node_id: String
§image: ImageRef
§

ReplaySetNodeThumbnailById

Fields

§node_id: String
§png_bytes: Vec<u8>
§width: u32
§height: u32
§

ReplaySetNodeFaviconById

Fields

§node_id: String
§rgba: Vec<u8>
§width: u32
§height: u32
§

ReplaySetNodeMimeHintById

Fields

§node_id: String
§mime_hint: Option<String>
§

ReplaySetNodeNestedById

Fields

§node_id: String
§nested: Option<String>
§

ReplaySetNodePinnedById

Fields

§node_id: String
§is_pinned: bool
§

ReplaySetNodeFacetById

Fields

§node_id: String
§facet: String
§value_json: String
§

ReplayRemoveNodeFacetById

Fields

§node_id: String
§facet: String
§

ReplayInsertNodeTagById

Fields

§node_id: String
§

ReplayRemoveNodeTagById

Fields

§node_id: String
§

ReplaySetNodeBodyById

Fields

§node_id: String
§

ReplayNavigateNodeById

Fields

§node_id: String
§transition: TransitionKind
§timestamp_ms: u64
§last_session_visited: u64
§

ReplayBranchHistoryByIds

Fields

§child_id: String
§parent_id: String
§

ReplayNodeHistoryBackById

Fields

§node_id: String
§timestamp_ms: u64
§

ReplayNodeHistoryForwardById

Fields

§node_id: String
§timestamp_ms: u64
§

ReplayAppendNodePropertyById

Fields

§node_id: String
§property: NodeProperty
§

ReplayAddNodeClassificationById

Fields

§node_id: String
§classification: NodeClassification
§

ReplayRemoveNodeClassificationById

Fields

§node_id: String
§value: String
§

ReplaySetNodeClassificationStatusById

§

ReplaySetNodePrimaryClassificationById

Fields

§node_id: String
§value: String
§

ReplayRecordNodeDerivationById

Fields

§node_id: String
§derivation: NodeDerivation
§

ReplaySetNodeTagIconOverrideById

Fields

§node_id: String
§

ReplaySetEdgeSemanticPredicateByIds

Fields

§from_id: String
§to_id: String
§predicate: Option<String>
§

ReplayAssertSemanticPredicateByIds

Fields

§from_id: String
§to_id: String
§predicate: String
§

ReplayAppendFrameLayoutHintById

Fields

§node_id: String
§

ReplayRemoveFrameLayoutHintById

Fields

§node_id: String
§hint_index: usize
§

ReplayMoveFrameLayoutHintById

Fields

§node_id: String
§from_index: usize
§to_index: usize
§

ReplaySetFrameSplitOfferSuppressedById

Fields

§node_id: String
§suppressed: bool
§

ReplayUpdateNodeHistoryById

Fields

§node_id: String
§entries: Vec<String>
§current_index: usize
§

ReplaySetImportRecords

Fields

§import_records: Vec<ImportRecord>
§

ReplayTouchNodeLastVisitedById

Fields

§node_id: String
§timestamp_ms: u64
§

ReplayAddField

Fields

§

ReplayRetireFieldById

Fields

§field_id: String
§

ReplayAddCoupling

Fields

§

ReplaySetFieldCouplingStrengthByFieldId

Fields

§field_id: String
§strength: f32
§

ReplayActivateFieldById

Fields

§field_id: String
§

ReplayRetractCouplingById

Fields

§coupling_id: String
§

ReplaySetNodeContentById

Appended so existing postcard enum ordinals stay stable.

Fields

§node_id: String
§content: Option<[u8; 32]>

Implementations§

Source§

impl CapturedDelta

Source

pub fn replay_delta(&self) -> Option<GraphDelta>

The graph-kernel replay delta this captured record folds back into.

None for records with no live equivalent (pre-phase-2 inline imagery), which a replay skips.

Trait Implementations§

Source§

impl Archive for CapturedDelta

Source§

type Archived = ArchivedCapturedDelta

The archived representation of this type. Read more
Source§

type Resolver = CapturedDeltaResolver

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.
Source§

fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )

Creates the archived version of this value at the given position and writes it to the given output. Read more
Source§

const COPY_OPTIMIZATION: CopyOptimization<Self> = _

An optimization flag that allows the bytes of this type to be copied directly to a writer instead of calling serialize. Read more
Source§

impl Clone for CapturedDelta

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CapturedDelta

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CapturedDelta

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<__D: Fallible + ?Sized> Deserialize<CapturedDelta, __D> for Archived<CapturedDelta>
where String: Archive, <String as Archive>::Archived: Deserialize<String, __D>, [f32; 2]: Archive, <[f32; 2] as Archive>::Archived: Deserialize<[f32; 2], __D>, EdgeAssertion: Archive, <EdgeAssertion as Archive>::Archived: Deserialize<EdgeAssertion, __D>, RelationSelector: Archive, <RelationSelector as Archive>::Archived: Deserialize<RelationSelector, __D>, NavigationTrigger: Archive, <NavigationTrigger as Archive>::Archived: Deserialize<NavigationTrigger, __D>, u64: Archive, <u64 as Archive>::Archived: Deserialize<u64, __D>, ImageRole: Archive, <ImageRole as Archive>::Archived: Deserialize<ImageRole, __D>, ImageRef: Archive, <ImageRef as Archive>::Archived: Deserialize<ImageRef, __D>, Vec<u8>: Archive, <Vec<u8> as Archive>::Archived: Deserialize<Vec<u8>, __D>, u32: Archive, <u32 as Archive>::Archived: Deserialize<u32, __D>, Option<String>: Archive, <Option<String> as Archive>::Archived: Deserialize<Option<String>, __D>, bool: Archive, <bool as Archive>::Archived: Deserialize<bool, __D>, TransitionKind: Archive, <TransitionKind as Archive>::Archived: Deserialize<TransitionKind, __D>, NodeProperty: Archive, <NodeProperty as Archive>::Archived: Deserialize<NodeProperty, __D>, NodeClassification: Archive, <NodeClassification as Archive>::Archived: Deserialize<NodeClassification, __D>, ClassificationScheme: Archive, <ClassificationScheme as Archive>::Archived: Deserialize<ClassificationScheme, __D>, ClassificationStatus: Archive, <ClassificationStatus as Archive>::Archived: Deserialize<ClassificationStatus, __D>, NodeDerivation: Archive, <NodeDerivation as Archive>::Archived: Deserialize<NodeDerivation, __D>, Option<BadgeIcon>: Archive, <Option<BadgeIcon> as Archive>::Archived: Deserialize<Option<BadgeIcon>, __D>, FrameLayoutHint: Archive, <FrameLayoutHint as Archive>::Archived: Deserialize<FrameLayoutHint, __D>, usize: Archive, <usize as Archive>::Archived: Deserialize<usize, __D>, Vec<String>: Archive, <Vec<String> as Archive>::Archived: Deserialize<Vec<String>, __D>, Vec<ImportRecord>: Archive, <Vec<ImportRecord> as Archive>::Archived: Deserialize<Vec<ImportRecord>, __D>, PersistedField: Archive, <PersistedField as Archive>::Archived: Deserialize<PersistedField, __D>, PersistedCoupling: Archive, <PersistedCoupling as Archive>::Archived: Deserialize<PersistedCoupling, __D>, f32: Archive, <f32 as Archive>::Archived: Deserialize<f32, __D>, Option<[u8; 32]>: Archive, <Option<[u8; 32]> as Archive>::Archived: Deserialize<Option<[u8; 32]>, __D>,

Source§

fn deserialize( &self, deserializer: &mut __D, ) -> Result<CapturedDelta, <__D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl PartialEq for CapturedDelta

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CapturedDelta

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<__S: Fallible + ?Sized> Serialize<__S> for CapturedDelta

Source§

fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.
Source§

impl StructuralPartialEq for CapturedDelta

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> ArchiveUnsized for T
where T: Archive,

Source§

type Archived = <T as Archive>::Archived

The archived counterpart of this type. Unlike Archive, it may be unsized. Read more
Source§

fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata

Creates the archived version of the metadata for this value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T> MemoryPayload for T
where T: Clone + Debug + Serialize + for<'de> Deserialize<'de>,

Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T, S> SerializeUnsized<S> for T
where T: Serialize<S>, S: Fallible + Writer + ?Sized,

Source§

fn serialize_unsized( &self, serializer: &mut S, ) -> Result<usize, <S as Fallible>::Error>

Writes the object and returns the position of the archived type.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.