[−][src]Struct keytokey::handlers::debug_handlers::DebugStream
Debug a keystream at any point in the handling by adding a DebugStream with a callback that knows how to write something.
Omits Timeout Events, does not print empty keystreams
Fields
write_callback: F
Trait Implementations
impl<T: USBKeyOut, F: FnMut(String)> ProcessKeys<T> for DebugStream<F>
[src]
fn process_keys(
&mut self,
events: &mut Vec<(Event, EventStatus)>,
_output: &mut T
) -> HandlerResult
[src]
&mut self,
events: &mut Vec<(Event, EventStatus)>,
_output: &mut T
) -> HandlerResult
fn default_enabled(&self) -> bool
[src]
Auto Trait Implementations
impl<F> Send for DebugStream<F> where
F: Send,
F: Send,
impl<F> Sync for DebugStream<F> where
F: Sync,
F: Sync,
impl<F> Unpin for DebugStream<F> where
F: Unpin,
F: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,