Struct RecvPoint
pub struct RecvPoint<T = PointBox>where
T: ?Sized,{
pub recv: U64,
pub point: T,
}
Expand description
Wrapper around a Point that sets its recv field
For Point::recv and during abe evaluation
Fields§
§recv: U64
§point: T
Implementations§
Trait Implementations§
§impl<T> Point for RecvPoint<T>
impl<T> Point for RecvPoint<T>
fn hash_ref(&self) -> &B64<[u8; 32]>
§fn recv(&self) -> Option<U64>
fn recv(&self) -> Option<U64>
recv is a special field.
It depends on the context. Reading directly from the database it should return the stamp at which it was inserted.
NOTE: Do not rely on this value being unique - in the db or otherwise.
fn xheader_ref(&self) -> &XHeader
fn byte_segments(&self) -> ByteSegments<'_>
fn as_fields(&self) -> &dyn PFields
fn as_box(&self) -> PointBox ⓘ
fn as_arc(&self) -> PointArc ⓘ
impl<T> Copy for RecvPoint<T>
Auto Trait Implementations§
impl<T> Freeze for RecvPoint<T>
impl<T> RefUnwindSafe for RecvPoint<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for RecvPoint<T>
impl<T> Sync for RecvPoint<T>
impl<T> Unpin for RecvPoint<T>
impl<T> UnwindSafe for RecvPoint<T>where
T: UnwindSafe + ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> PFields for Twhere
T: PointExt,
impl<T> PFields for Twhere
T: PointExt,
fn data(&self) -> &[u8] ⓘ
fn tail(&self) -> Option<Tail<'_>>
§fn padding(&self) -> &[u8] ⓘ
fn padding(&self) -> &[u8] ⓘ
Points are padded with upto 7 \xFF bytes and are u64 aligned - this is accessible here for completeness sake.
§fn linkpoint_header(&self) -> Option<&LinkPointHeader>
fn linkpoint_header(&self) -> Option<&LinkPointHeader>
Return a LinkPFieldsHeader, works for both key and link points.
§fn pfields_segments(&self) -> ByteSegments<'_>
fn pfields_segments(&self) -> ByteSegments<'_>
A utility function to translate this format into bytes for hashing & io