sel4_shared_ring_buffer

Struct RingBuffers

Source
pub struct RingBuffers<'a, R: RingBuffersRole, F, T = Descriptor> { /* private fields */ }

Implementations§

Source§

impl<'a, R: RingBuffersRole, F, T: Copy> RingBuffers<'a, R, F, T>

Source

pub fn new( free: RingBuffer<'a, R::FreeRole, T>, used: RingBuffer<'a, R::UsedRole, T>, notify: F, ) -> Self

Source

pub fn from_ptrs_using_default_initialization_strategy_for_role( free: ExternallySharedRef<'a, RawRingBuffer<T>>, used: ExternallySharedRef<'a, RawRingBuffer<T>>, notify: F, ) -> Self

Source

pub fn free(&self) -> &RingBuffer<'a, R::FreeRole, T>

Source

pub fn used(&self) -> &RingBuffer<'a, R::UsedRole, T>

Source

pub fn free_mut(&mut self) -> &mut RingBuffer<'a, R::FreeRole, T>

Source

pub fn used_mut(&mut self) -> &mut RingBuffer<'a, R::UsedRole, T>

Source§

impl<U, R: RingBuffersRole, F: Fn() -> U, T> RingBuffers<'_, R, F, T>

Source

pub fn notify(&self) -> U

Source§

impl<U, R: RingBuffersRole, F: FnMut() -> U, T> RingBuffers<'_, R, F, T>

Source

pub fn notify_mut(&mut self) -> U

Auto Trait Implementations§

§

impl<'a, R, F, T> Freeze for RingBuffers<'a, R, F, T>
where F: Freeze,

§

impl<'a, R, F, T> RefUnwindSafe for RingBuffers<'a, R, F, T>
where F: RefUnwindSafe, <R as RingBuffersRole>::FreeRole: RefUnwindSafe, <R as RingBuffersRole>::UsedRole: RefUnwindSafe, T: RefUnwindSafe,

§

impl<'a, R, F, T> Send for RingBuffers<'a, R, F, T>
where F: Send, <R as RingBuffersRole>::FreeRole: Send, <R as RingBuffersRole>::UsedRole: Send, T: Sync,

§

impl<'a, R, F, T> Sync for RingBuffers<'a, R, F, T>
where F: Sync, <R as RingBuffersRole>::FreeRole: Sync, <R as RingBuffersRole>::UsedRole: Sync, T: Sync,

§

impl<'a, R, F, T> Unpin for RingBuffers<'a, R, F, T>
where F: Unpin, <R as RingBuffersRole>::FreeRole: Unpin, <R as RingBuffersRole>::UsedRole: Unpin,

§

impl<'a, R, F, T> UnwindSafe for RingBuffers<'a, R, F, T>
where F: UnwindSafe, <R as RingBuffersRole>::FreeRole: UnwindSafe, <R as RingBuffersRole>::UsedRole: UnwindSafe, T: RefUnwindSafe,

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.