Struct JournalArgs
pub struct JournalArgs {
pub journal_max_records: Option<NonZeroUsize>,
pub journal_max_bytes: Option<NonZeroUsize>,
}Expand description
The journal caps (D147, D148) every subcommand that opens a study takes.
They bound a *.atj journal since its last compaction: a writer compacts
before a record would pass one, and a reader refuses a journal past one.
The journal does not record them, so every command that opens a journal
grown past the defaults needs the same values.
Fields§
§journal_max_records: Option<NonZeroUsize>The most records a *.atj journal holds between compactions, which also
bounds the collection entries of the state it compacts to [default:
1048576].
journal_max_bytes: Option<NonZeroUsize>The most bytes a *.atj journal holds between compactions [default:
134217728, 128 MiB].
Implementations§
§impl JournalArgs
impl JournalArgs
pub fn options(&self) -> Option<JournalOptions>
pub fn options(&self) -> Option<JournalOptions>
The journal options these flags set, or None when neither is given.
Trait Implementations§
§impl Args for JournalArgs
impl Args for JournalArgs
§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of arguments§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read more§impl Clone for JournalArgs
impl Clone for JournalArgs
§fn clone(&self) -> JournalArgs
fn clone(&self) -> JournalArgs
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 moreimpl Copy for JournalArgs
§impl Debug for JournalArgs
impl Debug for JournalArgs
§impl Default for JournalArgs
impl Default for JournalArgs
§fn default() -> JournalArgs
fn default() -> JournalArgs
Returns the “default value” for a type. Read more
§impl FromArgMatches for JournalArgs
impl FromArgMatches for JournalArgs
§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for JournalArgs
impl RefUnwindSafe for JournalArgs
impl Send for JournalArgs
impl Sync for JournalArgs
impl Unpin for JournalArgs
impl UnsafeUnpin for JournalArgs
impl UnwindSafe for JournalArgs
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<T, U> Imply<T> for U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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