pub struct ContextCheckpointProjections<'a> { /* private fields */ }Expand description
Borrowed projection façade over one validated checkpoint.
Implementations§
Source§impl<'a> ContextCheckpointProjections<'a>
impl<'a> ContextCheckpointProjections<'a>
Sourcepub fn new(
checkpoint: &'a ContextCheckpointV1,
) -> Result<Self, ContextCheckpointProjectionErrorV1>
pub fn new( checkpoint: &'a ContextCheckpointV1, ) -> Result<Self, ContextCheckpointProjectionErrorV1>
Validate the source before exposing the projection façade.
Sourcepub fn project(
&self,
target: ContextCheckpointProjectionTargetV1,
target_schema_version: u32,
) -> Result<ContextCheckpointProjectionResultV1, ContextCheckpointProjectionErrorV1>
pub fn project( &self, target: ContextCheckpointProjectionTargetV1, target_schema_version: u32, ) -> Result<ContextCheckpointProjectionResultV1, ContextCheckpointProjectionErrorV1>
Project one explicit target/version pair.
Sourcepub fn project_all(
&self,
) -> Vec<Result<ContextCheckpointProjectionResultV1, ContextCheckpointProjectionErrorV1>>
pub fn project_all( &self, ) -> Vec<Result<ContextCheckpointProjectionResultV1, ContextCheckpointProjectionErrorV1>>
Project every target in canonical target order.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ContextCheckpointProjections<'a>
impl<'a> RefUnwindSafe for ContextCheckpointProjections<'a>
impl<'a> Send for ContextCheckpointProjections<'a>
impl<'a> Sync for ContextCheckpointProjections<'a>
impl<'a> Unpin for ContextCheckpointProjections<'a>
impl<'a> UnsafeUnpin for ContextCheckpointProjections<'a>
impl<'a> UnwindSafe for ContextCheckpointProjections<'a>
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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