#[non_exhaustive]pub struct DeliveryRequest<'a> { /* private fields */ }Expand description
Durable, provider-neutral inputs for producing one source delivery.
The service constructs this request only from committed session state. Its private fields and accessors leave room for later source constraints without forcing providers to destructure a version-sensitive public shape.
Implementations§
Source§impl<'a> DeliveryRequest<'a>
impl<'a> DeliveryRequest<'a>
Sourcepub const fn new(
desired_state: &'a ApplyDesiredState,
acknowledged_cursor: Option<&'a Cursor>,
) -> DeliveryRequest<'a>
pub const fn new( desired_state: &'a ApplyDesiredState, acknowledged_cursor: Option<&'a Cursor>, ) -> DeliveryRequest<'a>
Construct an unconstrained poll after the committed cursor.
Sourcepub const fn with_required_reorg_anchor(
self,
anchor: Option<&'a BlockRef>,
) -> DeliveryRequest<'a>
pub const fn with_required_reorg_anchor( self, anchor: Option<&'a BlockRef>, ) -> DeliveryRequest<'a>
Require the first canonical replacement delivery to certify this anchor.
Sourcepub const fn desired_state(self) -> &'a ApplyDesiredState
pub const fn desired_state(self) -> &'a ApplyDesiredState
Complete authoritative desired state for the active revision.
Sourcepub const fn acknowledged_cursor(self) -> Option<&'a Cursor>
pub const fn acknowledged_cursor(self) -> Option<&'a Cursor>
Last transport cursor committed by the durable service.
Sourcepub const fn required_reorg_anchor(self) -> Option<&'a BlockRef>
pub const fn required_reorg_anchor(self) -> Option<&'a BlockRef>
Exact replacement anchor promised by an acknowledged reorg, if any.
A source must return None until it can honor this constraint, or return
a delivery that explicitly certifies the anchor. A blockful barrier must
stop at the anchor. Data may end later only when it includes a complete
continuous descendant suffix through its terminal cursor. Ignoring this
value is a source contract violation and the service rejects the output.
Trait Implementations§
Source§impl<'a> Clone for DeliveryRequest<'a>
impl<'a> Clone for DeliveryRequest<'a>
Source§fn clone(&self) -> DeliveryRequest<'a>
fn clone(&self) -> DeliveryRequest<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<'a> Copy for DeliveryRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeliveryRequest<'a>
impl<'a> RefUnwindSafe for DeliveryRequest<'a>
impl<'a> Send for DeliveryRequest<'a>
impl<'a> Sync for DeliveryRequest<'a>
impl<'a> Unpin for DeliveryRequest<'a>
impl<'a> UnsafeUnpin for DeliveryRequest<'a>
impl<'a> UnwindSafe for DeliveryRequest<'a>
Blanket Implementations§
impl<T> Allocation for T
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
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<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> ⓘ
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request