pub trait PullSourceProxyInterface: Send + Sync {
type SampleResponseFut: Future<Output = Result<PullSourceSampleResult, Error>> + Send;
type NextPossibleSampleTimeResponseFut: Future<Output = Result<i64, Error>> + Send;
type ShutdownResponseFut: Future<Output = Result<PullSourceShutdownResult, Error>> + Send;
// Required methods
fn update_device_properties(
&self,
properties: &Properties,
) -> Result<(), Error>;
fn sample(&self, urgency: Urgency) -> Self::SampleResponseFut;
fn next_possible_sample_time(
&self,
) -> Self::NextPossibleSampleTimeResponseFut;
fn shutdown(&self) -> Self::ShutdownResponseFut;
}Required Associated Types§
type SampleResponseFut: Future<Output = Result<PullSourceSampleResult, Error>> + Send
type NextPossibleSampleTimeResponseFut: Future<Output = Result<i64, Error>> + Send
type ShutdownResponseFut: Future<Output = Result<PullSourceShutdownResult, Error>> + Send
Required Methods§
fn update_device_properties(&self, properties: &Properties) -> Result<(), Error>
fn sample(&self, urgency: Urgency) -> Self::SampleResponseFut
fn next_possible_sample_time(&self) -> Self::NextPossibleSampleTimeResponseFut
fn shutdown(&self) -> Self::ShutdownResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".