pub trait RawChan {
type R;
type SendFuture<'a>: Future<Output = Result<(), Error>> + 'a
where Self: 'a;
type RecvFuture<'a>: Future<Output = Result<Self::R, Error>>
where Self: 'a;
type CloseFuture: Future<Output = Result<(), Error>> + 'static;
// Required methods
fn send(&mut self, r: Self::R) -> Self::SendFuture<'_>;
fn recv(&mut self) -> Self::RecvFuture<'_>;
fn close(self) -> Self::CloseFuture;
}Required Associated Types§
type R
type SendFuture<'a>: Future<Output = Result<(), Error>> + 'a where Self: 'a
type RecvFuture<'a>: Future<Output = Result<Self::R, Error>> where Self: 'a
type CloseFuture: Future<Output = Result<(), Error>> + 'static
Required Methods§
fn send(&mut self, r: Self::R) -> Self::SendFuture<'_>
fn recv(&mut self) -> Self::RecvFuture<'_>
fn close(self) -> Self::CloseFuture
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.