pub struct Entry<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> { /* private fields */ }
Expand description
The metadata associated with each Payload.
Implementations§
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Entry<MCL, MCC, MPL, N, S, PD>
Sourcepub fn new(
namespace_id: N,
subspace_id: S,
path: Path<MCL, MCC, MPL>,
timestamp: Timestamp,
payload_length: u64,
payload_digest: PD,
) -> Self
pub fn new( namespace_id: N, subspace_id: S, path: Path<MCL, MCC, MPL>, timestamp: Timestamp, payload_length: u64, payload_digest: PD, ) -> Self
Creates a new Entry
.
Sourcepub fn namespace_id(&self) -> &N
pub fn namespace_id(&self) -> &N
Returns a reference to the identifier of the namespace to which the Entry
belongs.
Sourcepub fn subspace_id(&self) -> &S
pub fn subspace_id(&self) -> &S
Returns a reference to the identifier of the subspace_id to which the Entry
belongs.
Sourcepub fn payload_length(&self) -> u64
pub fn payload_length(&self) -> u64
Returns the length of the Payload in bytes.
Sourcepub fn payload_digest(&self) -> &PD
pub fn payload_digest(&self) -> &PD
Returns a reference to the result of applying hash_payload to the Payload.
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Entry<MCL, MCC, MPL, N, S, PD>where
PD: PartialOrd,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Entry<MCL, MCC, MPL, N, S, PD>where
PD: PartialOrd,
Sourcepub fn is_newer_than(&self, other: &Self) -> bool
pub fn is_newer_than(&self, other: &Self) -> bool
Returns if this Entry
is newer than another using their timestamps.
Tie-breaks using the Entries’ payload digest and payload length otherwise.
Trait Implementations§
Source§impl<'arbitrary, const MCL: usize, const MCC: usize, const MPL: usize, N: Arbitrary<'arbitrary>, S: Arbitrary<'arbitrary>, PD: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for Entry<MCL, MCC, MPL, N, S, PD>
impl<'arbitrary, const MCL: usize, const MCC: usize, const MPL: usize, N: Arbitrary<'arbitrary>, S: Arbitrary<'arbitrary>, PD: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for Entry<MCL, MCC, MPL, N, S, PD>
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self
from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured
this type
needs to construct itself. Read moreSource§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> AsRef<Entry<MCL, MCC, MPL, N, S, PD>> for LengthyEntry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> AsRef<Entry<MCL, MCC, MPL, N, S, PD>> for LengthyEntry<MCL, MCC, MPL, N, S, PD>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N: Clone, S: Clone, PD: Clone> Clone for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N: Clone, S: Clone, PD: Clone> Clone for Entry<MCL, MCC, MPL, N, S, PD>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N: Debug, S: Debug, PD: Debug> Debug for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N: Debug, S: Debug, PD: Debug> Debug for Entry<MCL, MCC, MPL, N, S, PD>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Decodable for Entry<MCL, MCC, MPL, N, S, PD>where
N: Decodable,
S: Decodable,
PD: Decodable,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Decodable for Entry<MCL, MCC, MPL, N, S, PD>where
N: Decodable,
S: Decodable,
PD: Decodable,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason>,
Source§type ErrorReason = Blame
type ErrorReason = Blame
Source§async fn decode<P>(
producer: &mut P,
) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorReason>>
async fn decode<P>( producer: &mut P, ) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorReason>>
Self
, or yields an error if the producer does not produce a valid encoding.Source§fn decode_from_slice(
enc: &[u8],
) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, Self::ErrorReason>>>
fn decode_from_slice( enc: &[u8], ) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, Self::ErrorReason>>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> DecodableCanonic for Entry<MCL, MCC, MPL, N, S, PD>where
N: DecodableCanonic,
S: DecodableCanonic,
PD: DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> DecodableCanonic for Entry<MCL, MCC, MPL, N, S, PD>where
N: DecodableCanonic,
S: DecodableCanonic,
PD: DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
Source§type ErrorCanonic = Blame
type ErrorCanonic = Blame
Self
. Read moreSource§async fn decode_canonic<P>(
producer: &mut P,
) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorCanonic>>
async fn decode_canonic<P>( producer: &mut P, ) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorCanonic>>
Self
, and errors if the input encoding is not the canonical one.Source§fn decode_canonic_from_slice(
enc: &[u8],
) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, Self::ErrorCanonic>>>
fn decode_canonic_from_slice( enc: &[u8], ) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, Self::ErrorCanonic>>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> DecodableSync for Entry<MCL, MCC, MPL, N, S, PD>where
N: DecodableSync,
S: DecodableSync,
PD: DecodableSync,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> DecodableSync for Entry<MCL, MCC, MPL, N, S, PD>where
N: DecodableSync,
S: DecodableSync,
PD: DecodableSync,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason>,
Source§fn sync_decode_from_slice(
enc: &[u8],
) -> Result<Self, DecodeError<(), Infallible, Self::ErrorReason>>
fn sync_decode_from_slice( enc: &[u8], ) -> Result<Self, DecodeError<(), Infallible, Self::ErrorReason>>
Source§fn sync_decode_canonic_from_slice(
enc: &[u8],
) -> Result<Self, DecodeError<(), Infallible, Self::ErrorCanonic>>where
Self: DecodableCanonic,
fn sync_decode_canonic_from_slice(
enc: &[u8],
) -> Result<Self, DecodeError<(), Infallible, Self::ErrorCanonic>>where
Self: DecodableCanonic,
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Encodable for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Encodable for Entry<MCL, MCC, MPL, N, S, PD>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> EncodableKnownSize for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> EncodableKnownSize for Entry<MCL, MCC, MPL, N, S, PD>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> EncodableSync for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> EncodableSync for Entry<MCL, MCC, MPL, N, S, PD>
Source§fn sync_encode_into_vec(&self) -> Vec<u8> ⓘ
fn sync_encode_into_vec(&self) -> Vec<u8> ⓘ
Source§fn sync_encode_into_boxed_slice(&self) -> Box<[u8]>where
Self: EncodableKnownSize,
fn sync_encode_into_boxed_slice(&self) -> Box<[u8]>where
Self: EncodableKnownSize,
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N: Hash, S: Hash, PD: Hash> Hash for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N: Hash, S: Hash, PD: Hash> Hash for Entry<MCL, MCC, MPL, N, S, PD>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N: Ord, S: Ord, PD: Ord> Ord for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N: Ord, S: Ord, PD: Ord> Ord for Entry<MCL, MCC, MPL, N, S, PD>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N: PartialEq, S: PartialEq, PD: PartialEq> PartialEq for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N: PartialEq, S: PartialEq, PD: PartialEq> PartialEq for Entry<MCL, MCC, MPL, N, S, PD>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N: PartialOrd, S: PartialOrd, PD: PartialOrd> PartialOrd for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N: PartialOrd, S: PartialOrd, PD: PartialOrd> PartialOrd for Entry<MCL, MCC, MPL, N, S, PD>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodable<(N, Area<MCL, MCC, MPL, S>), Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodable<(N, Area<MCL, MCC, MPL, S>), Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
Source§async fn relative_decode<P>(
producer: &mut P,
r: &(N, Area<MCL, MCC, MPL, S>),
) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
async fn relative_decode<P>( producer: &mut P, r: &(N, Area<MCL, MCC, MPL, S>), ) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
Decodes an Entry
relative to a reference NamespaceId
and Area
.
Will return an error if the encoding has not been produced by the corresponding encoding function.
Source§fn relative_decode_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorReason>>>
fn relative_decode_from_slice( enc: &[u8], r: &RelativeTo, ) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorReason>>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodable<(N, Range3d<MCL, MCC, MPL, S>), Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodable<(N, Range3d<MCL, MCC, MPL, S>), Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
Source§async fn relative_decode<P>(
producer: &mut P,
r: &(N, Range3d<MCL, MCC, MPL, S>),
) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
async fn relative_decode<P>( producer: &mut P, r: &(N, Range3d<MCL, MCC, MPL, S>), ) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
Decodes an Entry
relative to a reference NamespaceId
and Range3d
.
Will return an error if the encoding has not been produced by the corresponding encoding function.
Source§fn relative_decode_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorReason>>>
fn relative_decode_from_slice( enc: &[u8], r: &RelativeTo, ) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorReason>>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodable<Entry<MCL, MCC, MPL, N, S, PD>, Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodable<Entry<MCL, MCC, MPL, N, S, PD>, Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
Source§async fn relative_decode<P>(
producer: &mut P,
r: &Entry<MCL, MCC, MPL, N, S, PD>,
) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
async fn relative_decode<P>( producer: &mut P, r: &Entry<MCL, MCC, MPL, N, S, PD>, ) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
Self
, or yields an error if the producer does not produce a valid encoding.Source§fn relative_decode_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorReason>>>
fn relative_decode_from_slice( enc: &[u8], r: &RelativeTo, ) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorReason>>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableCanonic<(N, Area<MCL, MCC, MPL, S>), Blame, Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableCanonic<(N, Area<MCL, MCC, MPL, S>), Blame, Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
Source§async fn relative_decode_canonic<P>(
producer: &mut P,
r: &(N, Area<MCL, MCC, MPL, S>),
) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
async fn relative_decode_canonic<P>( producer: &mut P, r: &(N, Area<MCL, MCC, MPL, S>), ) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
Self
, and errors if the input encoding is not the canonical one.Source§fn relative_decode_canonic_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorCanonic>>>
fn relative_decode_canonic_from_slice( enc: &[u8], r: &RelativeTo, ) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorCanonic>>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableCanonic<(N, Range3d<MCL, MCC, MPL, S>), Blame, Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableCanonic<(N, Range3d<MCL, MCC, MPL, S>), Blame, Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
Source§async fn relative_decode_canonic<P>(
producer: &mut P,
r: &(N, Range3d<MCL, MCC, MPL, S>),
) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
async fn relative_decode_canonic<P>( producer: &mut P, r: &(N, Range3d<MCL, MCC, MPL, S>), ) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
Self
, and errors if the input encoding is not the canonical one.Source§fn relative_decode_canonic_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorCanonic>>>
fn relative_decode_canonic_from_slice( enc: &[u8], r: &RelativeTo, ) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorCanonic>>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableCanonic<Entry<MCL, MCC, MPL, N, S, PD>, Blame, Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableCanonic<Entry<MCL, MCC, MPL, N, S, PD>, Blame, Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
Source§async fn relative_decode_canonic<P>(
producer: &mut P,
r: &Entry<MCL, MCC, MPL, N, S, PD>,
) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
async fn relative_decode_canonic<P>( producer: &mut P, r: &Entry<MCL, MCC, MPL, N, S, PD>, ) -> Result<Self, DecodeError<P::Final, P::Error, Blame>>
Source§fn relative_decode_canonic_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorCanonic>>>
fn relative_decode_canonic_from_slice( enc: &[u8], r: &RelativeTo, ) -> impl Future<Output = Result<Self, DecodeError<(), Infallible, ErrorCanonic>>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableSync<(N, Area<MCL, MCC, MPL, S>), Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableSync<(N, Area<MCL, MCC, MPL, S>), Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
Source§fn sync_relative_decode_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorReason>>
fn sync_relative_decode_from_slice( enc: &[u8], r: &RelativeTo, ) -> Result<Self, DecodeError<(), Infallible, ErrorReason>>
Source§fn sync_relative_decode_canonic_from_slice<ErrorCanonic>(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorCanonic>>where
ErrorCanonic: From<ErrorReason>,
Self: RelativeDecodableCanonic<RelativeTo, ErrorReason, ErrorCanonic>,
fn sync_relative_decode_canonic_from_slice<ErrorCanonic>(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorCanonic>>where
ErrorCanonic: From<ErrorReason>,
Self: RelativeDecodableCanonic<RelativeTo, ErrorReason, ErrorCanonic>,
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableSync<(N, Range3d<MCL, MCC, MPL, S>), Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableSync<(N, Range3d<MCL, MCC, MPL, S>), Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
Source§fn sync_relative_decode_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorReason>>
fn sync_relative_decode_from_slice( enc: &[u8], r: &RelativeTo, ) -> Result<Self, DecodeError<(), Infallible, ErrorReason>>
Source§fn sync_relative_decode_canonic_from_slice<ErrorCanonic>(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorCanonic>>where
ErrorCanonic: From<ErrorReason>,
Self: RelativeDecodableCanonic<RelativeTo, ErrorReason, ErrorCanonic>,
fn sync_relative_decode_canonic_from_slice<ErrorCanonic>(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorCanonic>>where
ErrorCanonic: From<ErrorReason>,
Self: RelativeDecodableCanonic<RelativeTo, ErrorReason, ErrorCanonic>,
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableSync<Entry<MCL, MCC, MPL, N, S, PD>, Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeDecodableSync<Entry<MCL, MCC, MPL, N, S, PD>, Blame> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + DecodableCanonic,
S: SubspaceId + DecodableCanonic,
PD: PayloadDigest + DecodableCanonic,
Blame: From<N::ErrorReason> + From<S::ErrorReason> + From<PD::ErrorReason> + From<N::ErrorCanonic> + From<S::ErrorCanonic> + From<PD::ErrorCanonic>,
Source§fn sync_relative_decode_from_slice(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorReason>>
fn sync_relative_decode_from_slice( enc: &[u8], r: &RelativeTo, ) -> Result<Self, DecodeError<(), Infallible, ErrorReason>>
Source§fn sync_relative_decode_canonic_from_slice<ErrorCanonic>(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorCanonic>>where
ErrorCanonic: From<ErrorReason>,
Self: RelativeDecodableCanonic<RelativeTo, ErrorReason, ErrorCanonic>,
fn sync_relative_decode_canonic_from_slice<ErrorCanonic>(
enc: &[u8],
r: &RelativeTo,
) -> Result<Self, DecodeError<(), Infallible, ErrorCanonic>>where
ErrorCanonic: From<ErrorReason>,
Self: RelativeDecodableCanonic<RelativeTo, ErrorReason, ErrorCanonic>,
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodable<(N, Area<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodable<(N, Area<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>
Source§async fn relative_encode<C>(
&self,
consumer: &mut C,
r: &(N, Area<MCL, MCC, MPL, S>),
) -> Result<(), C::Error>where
C: BulkConsumer<Item = u8>,
async fn relative_encode<C>(
&self,
consumer: &mut C,
r: &(N, Area<MCL, MCC, MPL, S>),
) -> Result<(), C::Error>where
C: BulkConsumer<Item = u8>,
Encodes this Entry
relative to a reference NamespaceId
and Area
.
Source§fn relative_encode_into_vec(
&self,
r: &RelativeTo,
) -> impl Future<Output = Vec<u8>>
fn relative_encode_into_vec( &self, r: &RelativeTo, ) -> impl Future<Output = Vec<u8>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodable<(N, Range3d<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodable<(N, Range3d<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>
Source§async fn relative_encode<C>(
&self,
consumer: &mut C,
r: &(N, Range3d<MCL, MCC, MPL, S>),
) -> Result<(), C::Error>where
C: BulkConsumer<Item = u8>,
async fn relative_encode<C>(
&self,
consumer: &mut C,
r: &(N, Range3d<MCL, MCC, MPL, S>),
) -> Result<(), C::Error>where
C: BulkConsumer<Item = u8>,
Encodes this Entry
relative to a reference NamespaceId
and Range3d
.
Source§fn relative_encode_into_vec(
&self,
r: &RelativeTo,
) -> impl Future<Output = Vec<u8>>
fn relative_encode_into_vec( &self, r: &RelativeTo, ) -> impl Future<Output = Vec<u8>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodable<Entry<MCL, MCC, MPL, N, S, PD>> for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodable<Entry<MCL, MCC, MPL, N, S, PD>> for Entry<MCL, MCC, MPL, N, S, PD>
Source§async fn relative_encode<Consumer>(
&self,
consumer: &mut Consumer,
reference: &Entry<MCL, MCC, MPL, N, S, PD>,
) -> Result<(), Consumer::Error>where
Consumer: BulkConsumer<Item = u8>,
async fn relative_encode<Consumer>(
&self,
consumer: &mut Consumer,
reference: &Entry<MCL, MCC, MPL, N, S, PD>,
) -> Result<(), Consumer::Error>where
Consumer: BulkConsumer<Item = u8>,
Source§fn relative_encode_into_vec(
&self,
r: &RelativeTo,
) -> impl Future<Output = Vec<u8>>
fn relative_encode_into_vec( &self, r: &RelativeTo, ) -> impl Future<Output = Vec<u8>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableKnownSize<(N, Area<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableKnownSize,
S: SubspaceId + EncodableKnownSize,
PD: PayloadDigest + EncodableKnownSize,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableKnownSize<(N, Area<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableKnownSize,
S: SubspaceId + EncodableKnownSize,
PD: PayloadDigest + EncodableKnownSize,
Source§fn relative_len_of_encoding(&self, r: &(N, Area<MCL, MCC, MPL, S>)) -> usize
fn relative_len_of_encoding(&self, r: &(N, Area<MCL, MCC, MPL, S>)) -> usize
encode
must feed exactly that many bytes into the consumer.Source§fn relative_encode_into_boxed_slice(
&self,
r: &RelativeTo,
) -> impl Future<Output = Box<[u8]>>
fn relative_encode_into_boxed_slice( &self, r: &RelativeTo, ) -> impl Future<Output = Box<[u8]>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableKnownSize<(N, Range3d<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableKnownSize,
S: SubspaceId + EncodableKnownSize,
PD: PayloadDigest + EncodableKnownSize,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableKnownSize<(N, Range3d<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableKnownSize,
S: SubspaceId + EncodableKnownSize,
PD: PayloadDigest + EncodableKnownSize,
Source§fn relative_len_of_encoding(&self, r: &(N, Range3d<MCL, MCC, MPL, S>)) -> usize
fn relative_len_of_encoding(&self, r: &(N, Range3d<MCL, MCC, MPL, S>)) -> usize
encode
must feed exactly that many bytes into the consumer.Source§fn relative_encode_into_boxed_slice(
&self,
r: &RelativeTo,
) -> impl Future<Output = Box<[u8]>>
fn relative_encode_into_boxed_slice( &self, r: &RelativeTo, ) -> impl Future<Output = Box<[u8]>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableKnownSize<Entry<MCL, MCC, MPL, N, S, PD>> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableKnownSize,
S: SubspaceId + EncodableKnownSize,
PD: PayloadDigest + EncodableKnownSize,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableKnownSize<Entry<MCL, MCC, MPL, N, S, PD>> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableKnownSize,
S: SubspaceId + EncodableKnownSize,
PD: PayloadDigest + EncodableKnownSize,
Source§fn relative_len_of_encoding(&self, r: &Entry<MCL, MCC, MPL, N, S, PD>) -> usize
fn relative_len_of_encoding(&self, r: &Entry<MCL, MCC, MPL, N, S, PD>) -> usize
encode
must feed exactly that many bytes into the consumer.Source§fn relative_encode_into_boxed_slice(
&self,
r: &RelativeTo,
) -> impl Future<Output = Box<[u8]>>
fn relative_encode_into_boxed_slice( &self, r: &RelativeTo, ) -> impl Future<Output = Box<[u8]>>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableSync<(N, Area<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableSync,
S: SubspaceId + EncodableSync,
PD: PayloadDigest + EncodableSync,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableSync<(N, Area<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableSync,
S: SubspaceId + EncodableSync,
PD: PayloadDigest + EncodableSync,
Source§fn sync_relative_encode_into_vec(&self, r: &RelativeTo) -> Vec<u8> ⓘ
fn sync_relative_encode_into_vec(&self, r: &RelativeTo) -> Vec<u8> ⓘ
Source§fn sync_relative_encode_into_boxed_slice(&self, r: &RelativeTo) -> Box<[u8]>where
Self: RelativeEncodableKnownSize<RelativeTo>,
fn sync_relative_encode_into_boxed_slice(&self, r: &RelativeTo) -> Box<[u8]>where
Self: RelativeEncodableKnownSize<RelativeTo>,
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableSync<(N, Range3d<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableSync,
S: SubspaceId + EncodableSync,
PD: PayloadDigest + EncodableSync,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableSync<(N, Range3d<MCL, MCC, MPL, S>)> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableSync,
S: SubspaceId + EncodableSync,
PD: PayloadDigest + EncodableSync,
Source§fn sync_relative_encode_into_vec(&self, r: &RelativeTo) -> Vec<u8> ⓘ
fn sync_relative_encode_into_vec(&self, r: &RelativeTo) -> Vec<u8> ⓘ
Source§fn sync_relative_encode_into_boxed_slice(&self, r: &RelativeTo) -> Box<[u8]>where
Self: RelativeEncodableKnownSize<RelativeTo>,
fn sync_relative_encode_into_boxed_slice(&self, r: &RelativeTo) -> Box<[u8]>where
Self: RelativeEncodableKnownSize<RelativeTo>,
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableSync<Entry<MCL, MCC, MPL, N, S, PD>> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableSync,
S: SubspaceId + EncodableSync,
PD: PayloadDigest + EncodableSync,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RelativeEncodableSync<Entry<MCL, MCC, MPL, N, S, PD>> for Entry<MCL, MCC, MPL, N, S, PD>where
N: NamespaceId + EncodableSync,
S: SubspaceId + EncodableSync,
PD: PayloadDigest + EncodableSync,
Source§fn sync_relative_encode_into_vec(&self, r: &RelativeTo) -> Vec<u8> ⓘ
fn sync_relative_encode_into_vec(&self, r: &RelativeTo) -> Vec<u8> ⓘ
Source§fn sync_relative_encode_into_boxed_slice(&self, r: &RelativeTo) -> Box<[u8]>where
Self: RelativeEncodableKnownSize<RelativeTo>,
fn sync_relative_encode_into_boxed_slice(&self, r: &RelativeTo) -> Box<[u8]>where
Self: RelativeEncodableKnownSize<RelativeTo>,
impl<const MCL: usize, const MCC: usize, const MPL: usize, N: Eq, S: Eq, PD: Eq> Eq for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> StructuralPartialEq for Entry<MCL, MCC, MPL, N, S, PD>
Auto Trait Implementations§
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> !Freeze for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> RefUnwindSafe for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Send for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Sync for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> Unpin for Entry<MCL, MCC, MPL, N, S, PD>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD> UnwindSafe for Entry<MCL, MCC, MPL, N, S, PD>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> RelativeEncodable<()> for Twhere
T: Encodable,
impl<T> RelativeEncodable<()> for Twhere
T: Encodable,
Source§fn relative_encode<C>(
&self,
consumer: &mut C,
_r: &(),
) -> impl Future<Output = Result<(), <C as Consumer>::Error>>where
C: BulkConsumer<Item = u8>,
fn relative_encode<C>(
&self,
consumer: &mut C,
_r: &(),
) -> impl Future<Output = Result<(), <C as Consumer>::Error>>where
C: BulkConsumer<Item = u8>,
&self
into the given consumer.Source§fn relative_encode_into_vec(
&self,
r: &RelativeTo,
) -> impl Future<Output = Vec<u8>>
fn relative_encode_into_vec( &self, r: &RelativeTo, ) -> impl Future<Output = Vec<u8>>
Source§impl<T> RelativeEncodableKnownSize<()> for Twhere
T: EncodableKnownSize,
impl<T> RelativeEncodableKnownSize<()> for Twhere
T: EncodableKnownSize,
Source§fn relative_len_of_encoding(&self, _r: &()) -> usize
fn relative_len_of_encoding(&self, _r: &()) -> usize
encode
must feed exactly that many bytes into the consumer.