Skip to main content

Backend

Trait Backend 

Source
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§

Source

type Ring: Ready<Token = C::Token, Layout = C::Layout>

Required Methods§

Source

fn new(ring: Self::Ring, tuning: C::Tuning) -> Self

Source

fn ring(&mut self) -> &mut Self::Ring

Source

fn tuning(&mut self) -> &mut C::Tuning

Source

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".

Implementors§