[−][src]Struct freertos_rust::Queue
A queue with a finite size. The items are owned by the queue and are copied.
Methods
impl<T: Sized + Copy> Queue<T>
[src]
pub fn new(max_size: usize) -> Result<Queue<T>, FreeRtosError>
[src]
pub fn send<D: DurationTicks>(
&self,
item: T,
max_wait: D
) -> Result<(), FreeRtosError>
[src]
&self,
item: T,
max_wait: D
) -> Result<(), FreeRtosError>
Send an item to the end of the queue. Wait for the queue to have empty space for it.
pub fn send_from_isr(
&self,
context: &mut InterruptContext,
item: T
) -> Result<(), FreeRtosError>
[src]
&self,
context: &mut InterruptContext,
item: T
) -> Result<(), FreeRtosError>
Send an item to the end of the queue, from an interrupt.
pub fn receive<D: DurationTicks>(&self, max_wait: D) -> Result<T, FreeRtosError>
[src]
Wait for an item to be available on the queue.
Trait Implementations
impl<T: Debug + Sized + Copy> Debug for Queue<T>
[src]
impl<T: Sized + Copy> Drop for Queue<T>
[src]
impl<T: Sized + Copy> Send for Queue<T>
[src]
impl<T: Sized + Copy> Sync for Queue<T>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
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>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,