pub enum PointerTargetKind {
Chunk,
Pointer,
}Expand description
What a pointer points at, as clients interpret it.
A node never reads this. It stores the tag as an opaque byte, so a new kind is a client-side change and not a network upgrade.
Variants§
Chunk
An immutable content-addressed chunk.
Pointer
Another pointer, which is how handover-by-indirection is expressed.
Implementations§
Trait Implementations§
Source§impl Clone for PointerTargetKind
impl Clone for PointerTargetKind
impl Copy for PointerTargetKind
Source§impl Debug for PointerTargetKind
impl Debug for PointerTargetKind
impl Eq for PointerTargetKind
Source§impl Hash for PointerTargetKind
impl Hash for PointerTargetKind
Source§impl Ord for PointerTargetKind
impl Ord for PointerTargetKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PointerTargetKind
impl PartialEq for PointerTargetKind
Source§impl PartialOrd for PointerTargetKind
impl PartialOrd for PointerTargetKind
impl StructuralPartialEq for PointerTargetKind
Auto Trait Implementations§
impl Freeze for PointerTargetKind
impl RefUnwindSafe for PointerTargetKind
impl Send for PointerTargetKind
impl Sync for PointerTargetKind
impl Unpin for PointerTargetKind
impl UnsafeUnpin for PointerTargetKind
impl UnwindSafe for PointerTargetKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more