pub struct StreamGuard<'g> { /* private fields */ }Expand description
Checks an upload in the form it actually leaves in, chunk by chunk, so
a file that changes after its first scan cannot send what that scan
never saw. The last SCAN_OVERLAP bytes are held back until the next
chunk has been scanned with them, so a secret spanning two chunks is
seen whole before any of it is released — the same windows
ensure_upload_file uses.
Implementations§
Auto Trait Implementations§
impl<'g> Freeze for StreamGuard<'g>
impl<'g> RefUnwindSafe for StreamGuard<'g>
impl<'g> Send for StreamGuard<'g>
impl<'g> Sync for StreamGuard<'g>
impl<'g> Unpin for StreamGuard<'g>
impl<'g> UnsafeUnpin for StreamGuard<'g>
impl<'g> UnwindSafe for StreamGuard<'g>
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