pub struct AttachmentReceiver { /* private fields */ }Implementations§
Source§impl AttachmentReceiver
impl AttachmentReceiver
pub fn start( transfer_id: u32, total_size: u32, chunk_size: u16, ) -> EmbeddedResult<Self>
pub fn resume( transfer_id: u32, total_size: u32, chunk_size: u16, existing_bytes: Vec<u8>, ) -> EmbeddedResult<Self>
pub fn cursor(&self) -> ChunkCursor
pub fn apply_chunk( &mut self, offset: u32, chunk: &AttachmentChunk, ) -> EmbeddedResult<ChunkApply>
pub fn commit( self, expected_sha256: Option<[u8; 32]>, ) -> EmbeddedResult<Vec<u8>>
Trait Implementations§
Source§impl Clone for AttachmentReceiver
impl Clone for AttachmentReceiver
Source§fn clone(&self) -> AttachmentReceiver
fn clone(&self) -> AttachmentReceiver
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 moreAuto Trait Implementations§
impl Freeze for AttachmentReceiver
impl RefUnwindSafe for AttachmentReceiver
impl Send for AttachmentReceiver
impl Sync for AttachmentReceiver
impl Unpin for AttachmentReceiver
impl UnsafeUnpin for AttachmentReceiver
impl UnwindSafe for AttachmentReceiver
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