pub struct UploadState {
pub name: String,
pub uuid: String,
pub buffer: BytesMut,
}Expand description
State of an in-flight blob upload.
Stored per upload UUID. Chunk bytes are accumulated in buffer
until the final PUT arrives and the client-declared digest is
compared against a recompute over the buffer.
Fields§
§name: StringRepository name the upload belongs to.
uuid: StringUpload UUID generated by [RegistryMeta::start_upload].
buffer: BytesMutAccumulated bytes.
Implementations§
Trait Implementations§
Source§impl Clone for UploadState
impl Clone for UploadState
Source§fn clone(&self) -> UploadState
fn clone(&self) -> UploadState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UploadState
impl RefUnwindSafe for UploadState
impl Send for UploadState
impl Sync for UploadState
impl Unpin for UploadState
impl UnsafeUnpin for UploadState
impl UnwindSafe for UploadState
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