pub struct ReadyReply {
pub kind: TransferKind,
pub path: String,
pub size: u64,
pub mtime: u64,
pub etag: String,
pub compress: bool,
pub block_size: u64,
pub total_blocks: u32,
pub offset: u64,
pub received: Vec<[u64; 2]>,
}Expand description
The FRAME_READY payload (server → client).
Fields§
§kind: TransferKindUpload or download.
path: StringVirtual path.
size: u64Authoritative size (download: real file size; upload: declared size).
mtime: u64Last-modified unix time.
etag: StringAuthoritative ETag.
compress: boolWhether this transfer is compressed.
block_size: u64Block size in bytes.
total_blocks: u32Number of blocks in this transfer (indexes 0..total_blocks).
offset: u64Download only: absolute file offset the first block begins at.
received: Vec<[u64; 2]>Upload only: byte ranges the server already holds (resume), as
[[start, end], ...].
Trait Implementations§
Source§impl Clone for ReadyReply
impl Clone for ReadyReply
Source§fn clone(&self) -> ReadyReply
fn clone(&self) -> ReadyReply
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 ReadyReply
impl Debug for ReadyReply
Source§impl<'de> Deserialize<'de> for ReadyReply
impl<'de> Deserialize<'de> for ReadyReply
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
Auto Trait Implementations§
impl Freeze for ReadyReply
impl RefUnwindSafe for ReadyReply
impl Send for ReadyReply
impl Sync for ReadyReply
impl Unpin for ReadyReply
impl UnsafeUnpin for ReadyReply
impl UnwindSafe for ReadyReply
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