pub trait Restore:
Send
+ Sized
+ 'static {
type Client: Sync;
const WHAT: &'static str;
// Required methods
fn connect() -> Result<Connected<Self::Client>, Error>;
fn restore(
&self,
client: &Self::Client,
) -> impl Future<Output = Result<(), Failure>> + Send;
// Provided method
fn restore_new(
&self,
client: &Self::Client,
) -> impl Future<Output = Result<(), Failure>> + Send { ... }
}Expand description
Modem state that a test changed and must set back.
Required Associated Constants§
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn restore_new(
&self,
client: &Self::Client,
) -> impl Future<Output = Result<(), Failure>> + Send
fn restore_new( &self, client: &Self::Client, ) -> impl Future<Output = Result<(), Failure>> + Send
Sets the state back with a new client from Restore::connect.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".