pub enum TransferControl {
Request {
hash: [u8; 32],
},
}Expand description
Control frame, carried on a SUBPROTOCOL_BLOB_TRANSFER packet with
the transfer stream ID. Sent requester → holder to initiate.
Variants§
Request
“Send me the chunk addressed by hash on this stream.”
Trait Implementations§
Source§impl Clone for TransferControl
impl Clone for TransferControl
Source§fn clone(&self) -> TransferControl
fn clone(&self) -> TransferControl
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 moreimpl Copy for TransferControl
Source§impl Debug for TransferControl
impl Debug for TransferControl
Source§impl<'de> Deserialize<'de> for TransferControl
impl<'de> Deserialize<'de> for TransferControl
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 TransferControl
Source§impl PartialEq for TransferControl
impl PartialEq for TransferControl
Source§fn eq(&self, other: &TransferControl) -> bool
fn eq(&self, other: &TransferControl) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TransferControl
impl Serialize for TransferControl
impl StructuralPartialEq for TransferControl
Auto Trait Implementations§
impl Freeze for TransferControl
impl RefUnwindSafe for TransferControl
impl Send for TransferControl
impl Sync for TransferControl
impl Unpin for TransferControl
impl UnsafeUnpin for TransferControl
impl UnwindSafe for TransferControl
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.