pub struct ScreenDeviceMock { /* private fields */ }
Implementations§
Source§impl ScreenDeviceMock
impl ScreenDeviceMock
pub fn new(term_size: CoordPair) -> Self
pub fn open(&self) -> Box<dyn ScreenDevice>
pub fn enable_command_log(&self)
pub fn disable_command_log(&self) -> Option<Vec<Vec<Command>>>
pub fn take_command_log(&self) -> Option<Vec<Vec<Command>>>
pub fn register_term_size_results( &self, results: impl IntoIterator<Item = Result<(), Error>>, )
pub fn blocking_get_size_count(&self) -> usize
pub fn register_send_results( &self, results: impl IntoIterator<Item = Result<usize, Error>>, )
pub fn register_flush_results( &self, results: impl IntoIterator<Item = Result<(), Error>>, )
pub fn flush_count(&self) -> usize
pub fn blocking_get_size(&self) -> Result<CoordPair, Error>
Trait Implementations§
Source§impl Clone for ScreenDeviceMock
impl Clone for ScreenDeviceMock
Source§fn clone(&self) -> ScreenDeviceMock
fn clone(&self) -> ScreenDeviceMock
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ScreenDeviceMock
impl RefUnwindSafe for ScreenDeviceMock
impl Send for ScreenDeviceMock
impl Sync for ScreenDeviceMock
impl Unpin for ScreenDeviceMock
impl UnwindSafe for ScreenDeviceMock
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