pub struct ParserOptions<V: Version> {
pub commands: HashSet<V::CommandId>,
pub limit: Option<usize>,
pub save_commands: bool,
pub stop_on_desync: bool,
}Expand description
Configuration options for Parser.
Fields§
§commands: HashSet<V::CommandId>Which commands should be fully parsed
limit: Option<usize>The maximum number of commands to parse
save_commands: boolWhether or not to add the parsed commands to the replay body
stop_on_desync: boolWhether or not to return an error if a desync is detected
Trait Implementations§
Source§impl<V: Version> Clone for ParserOptions<V>
impl<V: Version> Clone for ParserOptions<V>
Auto Trait Implementations§
impl<V> Freeze for ParserOptions<V>
impl<V> RefUnwindSafe for ParserOptions<V>
impl<V> Send for ParserOptions<V>
impl<V> Sync for ParserOptions<V>
impl<V> Unpin for ParserOptions<V>
impl<V> UnwindSafe for ParserOptions<V>
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