pub enum WriteMarkPolicy {
Refuse,
AllowSnapshot,
}Expand description
Policy for a read-only open of a file whose superblock marks it as open for
write by a writer that is not a SWMR writer — superblock status-flag bit 0
(H5F_SUPER_WRITE_ACCESS) alone, the mark a page-buffered session
(crate::FileAccessProperties::with_page_buffer_size) holds for its life.
Set it with
FileAccessProperties::with_write_mark_policy,
which states when the assertion AllowSnapshot makes
is true. It governs the read-only opens only: a SWMR pair is followed with
crate::File::open_swmr whatever this says, and no value of it lets a
second writer join a file a writer holds.
Variants§
Refuse
Refuse the open with Error::FileMarkedInUse. The default, and what
H5Fopen does with the same byte.
AllowSnapshot
Read the file as it stands, on the caller’s assertion that the writer
has flushed: it called crate::File::sync, or it stopped after a flush
and the mark stands only because nothing cleared it. Every other refusal
stays in place.
Trait Implementations§
Source§impl Clone for WriteMarkPolicy
impl Clone for WriteMarkPolicy
Source§fn clone(&self) -> WriteMarkPolicy
fn clone(&self) -> WriteMarkPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more