pub struct DownloadPersistentCachePiece { /* private fields */ }Expand description
DownloadPersistentCachePiece represents a download persistent cache piece request.
Value Format:
- Task ID (64 bytes): SHA-256 hash of the task ID.
- Piece Number (4 bytes): Piece number to download.
-----------------------------------------------
| Task ID (64 bytes) | Piece Number (4 bytes) |
-----------------------------------------------Implementations§
Source§impl DownloadPersistentCachePiece
DownloadPersistentCachePiece implements the DownloadPersistentCachePiece functions.
impl DownloadPersistentCachePiece
DownloadPersistentCachePiece implements the DownloadPersistentCachePiece functions.
Trait Implementations§
Source§impl Clone for DownloadPersistentCachePiece
impl Clone for DownloadPersistentCachePiece
Source§fn clone(&self) -> DownloadPersistentCachePiece
fn clone(&self) -> DownloadPersistentCachePiece
Returns a duplicate of the value. Read more
1.0.0 · 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 DownloadPersistentCachePiece
impl Debug for DownloadPersistentCachePiece
Source§impl From<DownloadPersistentCachePiece> for Bytes
Implement From for Bytes for conversion to a byte slice.
impl From<DownloadPersistentCachePiece> for Bytes
Implement From
Source§fn from(piece: DownloadPersistentCachePiece) -> Self
fn from(piece: DownloadPersistentCachePiece) -> Self
from converts the download persistent cache piece request to a byte slice.
Source§impl TryFrom<Bytes> for DownloadPersistentCachePiece
Implement TryFrom for DownloadPersistentCachePiece for conversion from a byte slice.
impl TryFrom<Bytes> for DownloadPersistentCachePiece
Implement TryFrom
Auto Trait Implementations§
impl Freeze for DownloadPersistentCachePiece
impl RefUnwindSafe for DownloadPersistentCachePiece
impl Send for DownloadPersistentCachePiece
impl Sync for DownloadPersistentCachePiece
impl Unpin for DownloadPersistentCachePiece
impl UnwindSafe for DownloadPersistentCachePiece
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