pub struct ReceivedObject {
pub object: CameraObject,
pub path: PathBuf,
pub size: u64,
pub sha256: Hash32,
pub resumed_from: u64,
pub already_staged: bool,
}Expand description
One object received and staged.
Fields§
§object: CameraObjectThe camera’s record of it.
path: PathBufWhere it is staged.
size: u64Its size in bytes.
sha256: Hash32The SHA-256 of its bytes, computed as they arrived and confirmed by reading them back.
resumed_from: u64The byte offset this run continued from; 0 for a whole transfer.
already_staged: boolWhether it was already staged by an earlier run and not fetched again.
Trait Implementations§
Source§impl Clone for ReceivedObject
impl Clone for ReceivedObject
Source§fn clone(&self) -> ReceivedObject
fn clone(&self) -> ReceivedObject
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 moreSource§impl Debug for ReceivedObject
impl Debug for ReceivedObject
impl Eq for ReceivedObject
Source§impl PartialEq for ReceivedObject
impl PartialEq for ReceivedObject
Source§fn eq(&self, other: &ReceivedObject) -> bool
fn eq(&self, other: &ReceivedObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReceivedObject
Auto Trait Implementations§
impl Freeze for ReceivedObject
impl RefUnwindSafe for ReceivedObject
impl Send for ReceivedObject
impl Sync for ReceivedObject
impl Unpin for ReceivedObject
impl UnsafeUnpin for ReceivedObject
impl UnwindSafe for ReceivedObject
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more