#[non_exhaustive]pub struct WriteState {
pub missing: Vec<String>,
pub complete: Vec<(u32, PlaneIndex)>,
pub expected_planes: Option<u64>,
pub tail_bytes: u64,
pub unit_bytes: Option<u64>,
pub append_consistent: bool,
pub modified: Option<SystemTime>,
pub evidence: Vec<String>,
}Expand description
What a reader found about a file that is not finished: the parts its software writes last
that are absent, and the planes already complete. Returned by
crate::Dataset::write_state only for files that are incomplete.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.missing: Vec<String>Structures written at the end of an acquisition that are absent, in the format’s own
words (chunk map, subblock directory, OME-XML, chunk files).
complete: Vec<(u32, PlaneIndex)>Planes whose data is entirely on disk, in the order they were written.
expected_planes: Option<u64>Planes the file will hold when finished, when its metadata says so.
tail_bytes: u64Bytes after the last complete unit: a plane, chunk or segment still being written.
unit_bytes: Option<u64>Size of one write unit (a frame chunk, a subblock segment, a page), for judging the tail.
append_consistent: boolEverything before the tail is intact (no damage in the middle of the file), so the incompleteness is explained by writing that has not finished.
modified: Option<SystemTime>Newest modification time among the files of the data set (directory stores); None
uses the path’s own modification time.
evidence: Vec<String>The observations behind this state, in plain words.
Implementations§
Source§impl WriteState
impl WriteState
Trait Implementations§
Source§impl Clone for WriteState
impl Clone for WriteState
Source§impl Debug for WriteState
impl Debug for WriteState
Auto Trait Implementations§
impl Freeze for WriteState
impl RefUnwindSafe for WriteState
impl Send for WriteState
impl Sync for WriteState
impl Unpin for WriteState
impl UnsafeUnpin for WriteState
impl UnwindSafe for WriteState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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