Trait async_ringbuf::traits::Based

pub trait Based {
    type Base: ?Sized;

    // Required methods
    fn base(&self) -> &Self::Base;
    fn base_mut(&mut self) -> &mut Self::Base;
}
Expand description

Trait that should be implemented by ring buffer wrappers.

Used for automatically delegating methods.

Required Associated Types§

type Base: ?Sized

Type the wrapper based on.

Required Methods§

fn base(&self) -> &Self::Base

Reference to base.

fn base_mut(&mut self) -> &mut Self::Base

Mutable reference to base.

Implementors§

source§

impl<R: AsyncRbRef, const P: bool, const C: bool> Based for AsyncWrap<R, P, C>

§

type Base = Direct<R, P, C>