pub struct TusUpload {
pub id: String,
pub storage_path: PathBuf,
pub offset: u64,
pub total_length: u64,
pub filename: String,
pub mime_type: String,
pub ttl_hours: f64,
pub created_at: i64,
pub delete_token: String,
pub uploader_ip: String,
pub storage_host: String,
pub storage_upload_mode: String,
}Expand description
A TUS upload session that lives in memory while the upload is in progress.
Chunks arrive one by one. When offset reaches total_length the file gets pushed to juicehost and a permanent database record is created.
Fields§
§id: String§storage_path: PathBuf§offset: u64§total_length: u64§filename: String§mime_type: String§ttl_hours: f64§created_at: i64§delete_token: String§uploader_ip: String§storage_host: String§storage_upload_mode: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for TusUpload
impl RefUnwindSafe for TusUpload
impl Send for TusUpload
impl Sync for TusUpload
impl Unpin for TusUpload
impl UnwindSafe for TusUpload
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