pub struct MockSystem { /* private fields */ }Implementations§
Trait Implementations§
Source§impl System<Cursor<Vec<u8>>> for MockSystem
impl System<Cursor<Vec<u8>>> for MockSystem
fn open_config(&mut self) -> MyResult<Option<Cursor<Vec<u8>>>>
fn create_config(&self) -> MyResult<Cursor<Vec<u8>>>
fn load_history( &self, _editor: &mut CommandEditor<'_>, _alias: &str, ) -> MyResult<()>
fn save_history( &self, _editor: &mut CommandEditor<'_>, _alias: &str, ) -> MyResult<()>
fn remove_history(&self, _drivers: &BTreeMap<String, Driver>) -> MyResult<()>
Auto Trait Implementations§
impl Freeze for MockSystem
impl RefUnwindSafe for MockSystem
impl Send for MockSystem
impl Sync for MockSystem
impl Unpin for MockSystem
impl UnsafeUnpin for MockSystem
impl UnwindSafe for MockSystem
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more