pub enum StreamMode {
On,
Off,
All,
OnAll,
Recent(u32),
}Expand description
Mode selector for commands that share the on/off/all/on-all/N grammar.
This is used by log, state, and echo, all of which support
identical sub-commands.
Variants§
On
Enable real-time notifications.
Off
Disable real-time notifications.
All
Dump the entire history buffer.
OnAll
Atomically enable real-time notifications AND dump history. This guarantees no messages are missed between the dump and the start of real-time streaming.
Recent(u32)
Show the N most recent history entries.
Trait Implementations§
Source§impl Clone for StreamMode
impl Clone for StreamMode
Source§fn clone(&self) -> StreamMode
fn clone(&self) -> StreamMode
Returns a duplicate of the value. Read more
1.0.0 · 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 StreamMode
impl Debug for StreamMode
Source§impl Display for StreamMode
impl Display for StreamMode
Source§impl FromStr for StreamMode
impl FromStr for StreamMode
Source§impl PartialEq for StreamMode
impl PartialEq for StreamMode
impl Eq for StreamMode
impl StructuralPartialEq for StreamMode
Auto Trait Implementations§
impl Freeze for StreamMode
impl RefUnwindSafe for StreamMode
impl Send for StreamMode
impl Sync for StreamMode
impl Unpin for StreamMode
impl UnsafeUnpin for StreamMode
impl UnwindSafe for StreamMode
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