pub trait Backend<C: Context>: Close<State: Unmap> + Sized {
type Ring: Ready<Token = C::Token, Layout = C::Layout>;
// Required methods
fn new(ring: Self::Ring, tuning: C::Tuning) -> Self;
fn ring(&mut self) -> &mut Self::Ring;
fn tuning(&mut self) -> &mut C::Tuning;
fn split(&mut self) -> (&mut Self::Ring, &mut C::Tuning);
}Expand description
Borrows the native reactor and its stable option storage from one owner.
Required Associated Types§
Required Methods§
fn new(ring: Self::Ring, tuning: C::Tuning) -> Self
fn ring(&mut self) -> &mut Self::Ring
fn tuning(&mut self) -> &mut C::Tuning
fn split(&mut self) -> (&mut Self::Ring, &mut C::Tuning)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".