pub struct ProviderPlanSession<W: MessageWriter<Error = Error>, R: MessageReader<Error = Error>> { /* private fields */ }Expand description
Only an issued plan matching the signed candidate can reach this stage.
Implementations§
Source§impl<W: MessageWriter<Error = Error>, R: MessageReader<Error = Error>> ProviderPlanSession<W, R>
impl<W: MessageWriter<Error = Error>, R: MessageReader<Error = Error>> ProviderPlanSession<W, R>
Sourcepub fn plan(&self) -> &ProviderPlan
pub fn plan(&self) -> &ProviderPlan
The exact ticketed layout admitted after client consent.
Sourcepub fn ready(&self) -> &TransferReady
pub fn ready(&self) -> &TransferReady
The exact issuer admission that preceded the unsigned offer.
Sourcepub async fn receive_inline(&mut self, scratch: &Path) -> Result<(), Error>
pub async fn receive_inline(&mut self, scratch: &Path) -> Result<(), Error>
Reserve a bounded virtual pack and receive only the issuer’s inline records. Every chunk must name its exact record and next offset; the wire framing cannot allocate or write outside the canonical layout. The session retains the spool for separately authorized provider ranges.
Sourcepub async fn receive_provider_ranges<T: RpcTransport<Error = Error>>(
&mut self,
providers: &[Remote<T>],
) -> Result<(), Error>
pub async fn receive_provider_ranges<T: RpcTransport<Error = Error>>( &mut self, providers: &[Remote<T>], ) -> Result<(), Error>
Read each ticketed physical range from its exact provider endpoint. The provider cannot change virtual placement: every byte is written only into its precommitted record, then independently rehashed.
Auto Trait Implementations§
impl<W, R> Freeze for ProviderPlanSession<W, R>
impl<W, R> RefUnwindSafe for ProviderPlanSession<W, R>
impl<W, R> Send for ProviderPlanSession<W, R>
impl<W, R> Sync for ProviderPlanSession<W, R>
impl<W, R> Unpin for ProviderPlanSession<W, R>
impl<W, R> UnsafeUnpin for ProviderPlanSession<W, R>
impl<W, R> UnwindSafe for ProviderPlanSession<W, R>
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
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