Trait mapped_file::ring::buffer::TwoBufferProvider
source · [−]pub trait TwoBufferProvider<T: ?Sized> {
type ControlWrapper: Borrow<T>;
fn as_wrapper(&self) -> &Self::ControlWrapper;
fn from_wrapper_boxed(r: &Self::ControlWrapper) -> Box<Self>;
fn from_boxed(value: Box<T>) -> Box<Self>;
fn from_wrapper(r: &Self::ControlWrapper) -> Self
where
Self: Sized,
{ ... }
fn inner(&self) -> &T { ... }
fn from_value(value: T) -> Self
where
T: Sized,
Self: Sized,
{ ... }
}