pub enum ResponseType {
Block {
cid: Cid,
block: Vec<u8>,
},
Presence {
cid: Cid,
presence: BlockPresenceType,
},
}
Expand description
Response type for received bitswap request.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResponseType
impl RefUnwindSafe for ResponseType
impl Send for ResponseType
impl Sync for ResponseType
impl Unpin for ResponseType
impl UnwindSafe for ResponseType
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