pub struct StartRequest {
pub kind: TransferKind,
pub path: String,
pub size: u64,
pub mtime: u64,
pub etag: String,
pub compress: bool,
pub mode: String,
pub offset: u64,
pub block_size: u64,
pub window: u32,
}Expand description
The FRAME_START payload (client → server).
Fields§
§kind: TransferKindUpload or download.
path: StringVirtual path.
size: u64Declared size (upload; the download side ignores it).
mtime: u64Last-modified unix time (upload).
etag: StringDeterministic content id (upload; server derives the session temp from it so an interrupted upload resumes the same shared temp).
compress: boolWhether to compress each block payload.
mode: String"create" | "overwrite" (upload only).
offset: u64Resume offset (download only): the first block covers offset...
block_size: u64Block size the sender will use.
window: u32In-flight block window the sender should use (0 = server default).
The download sender on the server pipelines up to this many blocks
per wave before a reconciliation round, so the browser’s
downloadWindow/uploadWindow knobs stay meaningful.
Trait Implementations§
Source§impl Clone for StartRequest
impl Clone for StartRequest
Source§fn clone(&self) -> StartRequest
fn clone(&self) -> StartRequest
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 StartRequest
impl Debug for StartRequest
Source§impl<'de> Deserialize<'de> for StartRequest
impl<'de> Deserialize<'de> for StartRequest
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 StartRequest
impl RefUnwindSafe for StartRequest
impl Send for StartRequest
impl Sync for StartRequest
impl Unpin for StartRequest
impl UnsafeUnpin for StartRequest
impl UnwindSafe for StartRequest
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