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§
Source§impl PointerTargetKind
impl PointerTargetKind
Sourcepub const fn from_tag(tag: u8) -> Option<PointerTargetKind>
pub const fn from_tag(tag: u8) -> Option<PointerTargetKind>
Interpret a wire tag, if it names a kind this build knows.
Returns None for anything else rather than an error: an unrecognised
tag is a target this client cannot follow, not a malformed record.
Trait Implementations§
Source§impl Clone for PointerTargetKind
impl Clone for PointerTargetKind
Source§fn clone(&self) -> PointerTargetKind
fn clone(&self) -> PointerTargetKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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
Source§fn cmp(&self, other: &PointerTargetKind) -> Ordering
fn cmp(&self, other: &PointerTargetKind) -> Ordering
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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