pub trait StateProxyInterface: Send + Sync {
type SetResponseFut: Future<Output = Result<StateSetResult, Error>> + Send;
type GetResponseFut: Future<Output = Result<SystemActivityGovernorState, Error>> + Send;
type SetBootCompleteResponseFut: Future<Output = Result<(), Error>> + Send;
type WatchResponseFut: Future<Output = Result<SystemActivityGovernorState, Error>> + Send;
// Required methods
fn set(&self, payload: &SystemActivityGovernorState) -> Self::SetResponseFut;
fn get(&self) -> Self::GetResponseFut;
fn set_boot_complete(&self) -> Self::SetBootCompleteResponseFut;
fn watch(&self) -> Self::WatchResponseFut;
}Required Associated Types§
type SetResponseFut: Future<Output = Result<StateSetResult, Error>> + Send
type GetResponseFut: Future<Output = Result<SystemActivityGovernorState, Error>> + Send
type SetBootCompleteResponseFut: Future<Output = Result<(), Error>> + Send
type WatchResponseFut: Future<Output = Result<SystemActivityGovernorState, Error>> + Send
Required Methods§
fn set(&self, payload: &SystemActivityGovernorState) -> Self::SetResponseFut
fn get(&self) -> Self::GetResponseFut
fn set_boot_complete(&self) -> Self::SetBootCompleteResponseFut
fn watch(&self) -> Self::WatchResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".