pub struct PaidChunk {
pub content: Bytes,
pub address: XorName,
pub quoted_peers: Vec<(PeerId, Vec<MultiAddr>)>,
pub proof_bytes: Vec<u8>,
}Expand description
Chunk paid but not yet stored. Produced by Client::batch_pay.
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.
proof_bytes: Vec<u8>Serialized PaymentProof bytes.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PaidChunk
impl RefUnwindSafe for PaidChunk
impl Send for PaidChunk
impl Sync for PaidChunk
impl Unpin for PaidChunk
impl UnsafeUnpin for PaidChunk
impl UnwindSafe for PaidChunk
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,
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