pub struct BlobFetchCancelParams {
pub hash: String,
}Expand description
Params of Request::BlobFetchCancel (#172): stop every in-flight Request::BlobFetch of
this blob.
Keyed by HASH, not by JSON-RPC id, and the reason is not aesthetic: crate::ControlClient
borrows &mut self for a request’s whole duration, so a client physically cannot send an
id-keyed cancel down the connection whose request it would name. A hash is reachable from
anywhere — including a fresh connection — and it is already the key a consumer holds, since
every crate::StreamFrame::BlobTransfer carries it.
Fields§
§hash: StringThe blob’s BLAKE3 hash, hex — as it appears on BlobTransfer frames and BlobFetchResult.
Trait Implementations§
Source§impl Clone for BlobFetchCancelParams
impl Clone for BlobFetchCancelParams
Source§fn clone(&self) -> BlobFetchCancelParams
fn clone(&self) -> BlobFetchCancelParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlobFetchCancelParams
impl Debug for BlobFetchCancelParams
Source§impl<'de> Deserialize<'de> for BlobFetchCancelParams
impl<'de> Deserialize<'de> for BlobFetchCancelParams
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 BlobFetchCancelParams
Source§impl PartialEq for BlobFetchCancelParams
impl PartialEq for BlobFetchCancelParams
Source§impl Serialize for BlobFetchCancelParams
impl Serialize for BlobFetchCancelParams
impl StructuralPartialEq for BlobFetchCancelParams
Auto Trait Implementations§
impl Freeze for BlobFetchCancelParams
impl RefUnwindSafe for BlobFetchCancelParams
impl Send for BlobFetchCancelParams
impl Sync for BlobFetchCancelParams
impl Unpin for BlobFetchCancelParams
impl UnsafeUnpin for BlobFetchCancelParams
impl UnwindSafe for BlobFetchCancelParams
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