pub struct PreparedChunk {
pub content: Bytes,
pub address: XorName,
pub quoted_peers: Vec<(PeerId, Vec<MultiAddr>)>,
pub payment: SingleNodePayment,
pub peer_quotes: Vec<(EncodedPeerId, PaymentQuote)>,
}Expand description
Chunk quoted but not yet paid. Produced by Client::prepare_chunk_payment.
Fields§
§content: BytesThe chunk content bytes.
address: XorNameContent address (BLAKE3 hash).
quoted_peers: Vec<(PeerId, Vec<MultiAddr>)>Closest peers from quote collection — PUT targets for close-group replication.
payment: SingleNodePaymentPayment structure (quotes sorted, median selected, not yet paid on-chain).
peer_quotes: Vec<(EncodedPeerId, PaymentQuote)>Peer quotes for building ProofOfPayment.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PreparedChunk
impl RefUnwindSafe for PreparedChunk
impl Send for PreparedChunk
impl Sync for PreparedChunk
impl Unpin for PreparedChunk
impl UnsafeUnpin for PreparedChunk
impl UnwindSafe for PreparedChunk
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> 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