pub trait PollClient {
// Required methods
fn request<Rq: RequestVariant>(
&mut self,
req: Rq,
) -> ClientResult<'_, Rq::Reply, Self>;
fn poll(&mut self) -> Poll<Result<Reply, Error>>;
// Provided method
fn interrupt(&self) -> Option<&'static InterruptFlag> { ... }
}
Expand description
Lowest level interface, use one of the higher level ones.
Required Methods§
fn request<Rq: RequestVariant>( &mut self, req: Rq, ) -> ClientResult<'_, Rq::Reply, Self>
fn poll(&mut self) -> Poll<Result<Reply, Error>>
Provided Methods§
fn interrupt(&self) -> Option<&'static InterruptFlag>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.