pub enum VTInputCapture {
None,
Count(usize),
CountUtf8(usize),
Terminator(&'static [u8]),
}Expand description
The type of capture mode to use after this event has been emitted.
The data will be emitted as a [VTInputEvent::Captured] event.
Variants§
None
No capture mode. This must also be returned from any
[VTInputEvent::Captured] event.
Count(usize)
Capture a fixed number of bytes.
CountUtf8(usize)
Capture a fixed number of UTF-8 chars.
Terminator(&'static [u8])
Capture bytes until a terminator is found.
Trait Implementations§
Source§impl Clone for VTInputCapture
impl Clone for VTInputCapture
Source§fn clone(&self) -> VTInputCapture
fn clone(&self) -> VTInputCapture
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 VTInputCapture
impl Debug for VTInputCapture
Source§impl PartialEq for VTInputCapture
impl PartialEq for VTInputCapture
impl Copy for VTInputCapture
impl Eq for VTInputCapture
impl StructuralPartialEq for VTInputCapture
Auto Trait Implementations§
impl Freeze for VTInputCapture
impl RefUnwindSafe for VTInputCapture
impl Send for VTInputCapture
impl Sync for VTInputCapture
impl Unpin for VTInputCapture
impl UnwindSafe for VTInputCapture
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