#[repr(i32)]pub enum ChildEdgeStatus {
Unspecified = 0,
UpToDate = 1,
FastForwardable = 2,
Diverged = 3,
NoChildHead = 4,
}Expand description
Ff/divergence status of a child edge vs the child’s latest content state
(moving-anchored-ff). Mirrors weft children::ChildEdgeStatus.
Variants§
Unspecified = 0
UpToDate = 1
The edge’s anchor already equals the child’s latest content state.
FastForwardable = 2
The child advanced linearly past the anchor (anchor is an ancestor of the child’s latest state): the edge can fast-forward to it.
Diverged = 3
The child’s history diverged from the anchor (non-ff): the edge does not move; surfaced instead of silently advancing.
NoChildHead = 4
The child has no content head yet (nothing to advance toward).
Implementations§
Source§impl ChildEdgeStatus
impl ChildEdgeStatus
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ChildEdgeStatus
impl Clone for ChildEdgeStatus
Source§fn clone(&self) -> ChildEdgeStatus
fn clone(&self) -> ChildEdgeStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more