pub struct BatchStoreRequest {
pub entries: Vec<(ContentHash, Coverage)>,
pub holder: NodeId,
}Expand description
Batched publication of multiple content records from one holder to one
receiver (ADR 022 §STORE Flow). A bandwidth optimization over n
separate StoreRequests: the re-publish scheduler groups due hashes
by receiver and sends each its set in one of these. Admission and
two-stage rate-limit accounting live in the decdn-node handler.
Fields§
§entries: Vec<(ContentHash, Coverage)>(hash, coverage) pairs being published in this batch. Capped at
MAX_BATCH_STORE_HASHES (ADR 022 §STORE Flow); oversize values fail
decode (the handler maps that to MALFORMED_MESSAGE 0x03 per
ADR 013).
holder: NodeIdSingle holder for the batch. Per ADR 022 §STORE Flow the receiver
checks this once against the authenticated QUIC NodeId; the
per-hash check is skipped because the field is batch-level.
Trait Implementations§
Source§impl Clone for BatchStoreRequest
impl Clone for BatchStoreRequest
Source§impl Debug for BatchStoreRequest
impl Debug for BatchStoreRequest
Source§impl<'de> Deserialize<'de> for BatchStoreRequest
impl<'de> Deserialize<'de> for BatchStoreRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BatchStoreRequest
Source§impl PartialEq for BatchStoreRequest
impl PartialEq for BatchStoreRequest
Source§impl Serialize for BatchStoreRequest
impl Serialize for BatchStoreRequest
impl StructuralPartialEq for BatchStoreRequest
Auto Trait Implementations§
impl Freeze for BatchStoreRequest
impl RefUnwindSafe for BatchStoreRequest
impl Send for BatchStoreRequest
impl Sync for BatchStoreRequest
impl Unpin for BatchStoreRequest
impl UnsafeUnpin for BatchStoreRequest
impl UnwindSafe for BatchStoreRequest
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