pub enum RootIdentifier {
Direct(SegmentTreeRoot),
Indirect(WorkPackageHash),
}Expand description
Reference to a sequence of import segments, which when combined with an index forms a commitment to a specific segment of data.
Variants§
Direct(SegmentTreeRoot)
Direct cryptographic commitment to the export-segments tree root.
Indirect(WorkPackageHash)
Indirect reference to the export-segments tree root via a hash of the work-package which resulted in it.
Trait Implementations§
Source§impl Clone for RootIdentifier
impl Clone for RootIdentifier
Source§fn clone(&self) -> RootIdentifier
fn clone(&self) -> RootIdentifier
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 moreSource§impl Debug for RootIdentifier
impl Debug for RootIdentifier
Source§impl From<SegmentTreeRoot> for RootIdentifier
impl From<SegmentTreeRoot> for RootIdentifier
Source§fn from(root: SegmentTreeRoot) -> Self
fn from(root: SegmentTreeRoot) -> Self
Converts to this type from the input type.
Source§impl From<WorkPackageHash> for RootIdentifier
impl From<WorkPackageHash> for RootIdentifier
Source§fn from(hash: WorkPackageHash) -> Self
fn from(hash: WorkPackageHash) -> Self
Converts to this type from the input type.
Source§impl Hash for RootIdentifier
impl Hash for RootIdentifier
Source§impl PartialEq for RootIdentifier
impl PartialEq for RootIdentifier
Source§impl TryFrom<RootIdentifier> for SegmentTreeRoot
impl TryFrom<RootIdentifier> for SegmentTreeRoot
Source§type Error = WorkPackageHash
type Error = WorkPackageHash
The type returned in the event of a conversion error.
impl Copy for RootIdentifier
impl Eq for RootIdentifier
impl StructuralPartialEq for RootIdentifier
Auto Trait Implementations§
impl Freeze for RootIdentifier
impl RefUnwindSafe for RootIdentifier
impl Send for RootIdentifier
impl Sync for RootIdentifier
impl Unpin for RootIdentifier
impl UnwindSafe for RootIdentifier
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