#[repr(C)]pub enum TransferEvent {
Progress {
transferred: u64,
total: Option<u64>,
},
Done {
outcome: HttpOutcome,
handle: Option<String>,
},
}Expand description
One event from an in-flight transfer, bincoded into the stream’s
PluginResponse.output (the same pattern Release A uses for HttpOutcome).
Variants§
Progress
A progress tick. total is None when the size is unknown (chunked response).
Done
The transfer finished. outcome is Release A’s request result; for a download
its body is empty (bytes went to disk) and handle is the destination the
shell wrote (sandbox path on native, blob: URL on web). handle is None for
an upload.
Implementations§
Source§impl TransferEvent
impl TransferEvent
Trait Implementations§
Source§impl Clone for TransferEvent
impl Clone for TransferEvent
Source§impl Debug for TransferEvent
impl Debug for TransferEvent
Source§impl<'de> Deserialize<'de> for TransferEvent
impl<'de> Deserialize<'de> for TransferEvent
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
impl Eq for TransferEvent
Source§impl<'ʄ> Facet<'ʄ> for TransferEvent
impl<'ʄ> Facet<'ʄ> for TransferEvent
Source§impl PartialEq for TransferEvent
impl PartialEq for TransferEvent
Source§impl Serialize for TransferEvent
impl Serialize for TransferEvent
impl StructuralPartialEq for TransferEvent
Auto Trait Implementations§
impl Freeze for TransferEvent
impl RefUnwindSafe for TransferEvent
impl Send for TransferEvent
impl Sync for TransferEvent
impl Unpin for TransferEvent
impl UnsafeUnpin for TransferEvent
impl UnwindSafe for TransferEvent
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