pub struct Queue<T> { /* private fields */ }
Implementations§
Source§impl<T> Queue<T>
impl<T> Queue<T>
pub fn new(size: usize) -> Result<(Self, QueueMeta), Error>
Sourcepub unsafe fn new_from_meta(meta: &QueueMeta) -> Result<Self, Error>
pub unsafe fn new_from_meta(meta: &QueueMeta) -> Result<Self, Error>
§Safety
Must make sure the meta is valid until the Queue is dropped
pub fn is_memory_owner(&self) -> bool
pub fn meta(&self) -> QueueMeta
pub fn read(self) -> ReadQueue<T>
pub fn write(self) -> Result<WriteQueue<T>, Error>where
T: 'static,
Trait Implementations§
impl<T: Send> Send for Queue<T>
impl<T: Sync> Sync for Queue<T>
Auto Trait Implementations§
impl<T> Freeze for Queue<T>
impl<T> RefUnwindSafe for Queue<T>where
T: RefUnwindSafe,
impl<T> Unpin for Queue<T>
impl<T> UnwindSafe for Queue<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more