pub struct Fake { /* private fields */ }Expand description
A recording transport for test layer 1.
Deliberately not #[cfg(test)]: integration tests live in their own
crate and could not see it otherwise, and layer 1 is where most of coop’s
logic is actually verified.
Implementations§
Trait Implementations§
Source§impl Transport for Fake
impl Transport for Fake
Source§fn run_unlocked(&self, _host: &Host, script: &str) -> Result<Output>
fn run_unlocked(&self, _host: &Host, script: &str) -> Result<Output>
Run a shell script on the host, WITHOUT taking the ticket lock. Read more
Source§fn master_alive(&self, _host: &Host) -> bool
fn master_alive(&self, _host: &Host) -> bool
Is there a usable multiplexing socket?
ssh -O check only — it takes no
session channel, so this probe never competes with anything, and it is
the one call deliberately exempt from the lock.Auto Trait Implementations§
impl !Freeze for Fake
impl RefUnwindSafe for Fake
impl Send for Fake
impl Sync for Fake
impl Unpin for Fake
impl UnsafeUnpin for Fake
impl UnwindSafe for Fake
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