[][src]Struct freertos_rs::patterns::processor::Processor

pub struct Processor<I, O> where
    I: ReplyableMessage + Copy,
    O: Copy
{ /* fields omitted */ }

Methods

impl<I, O> Processor<I, O> where
    I: ReplyableMessage + Copy,
    O: Copy
[src]

pub fn new(queue_size: usize) -> Result<Self, FreeRtosError>[src]

pub fn new_client(&self) -> Result<Client<I>, FreeRtosError>[src]

pub fn new_client_with_reply<D: DurationTicks>(
    &self,
    client_receive_queue_size: usize,
    max_wait: D
) -> Result<ProcessorClient<I, SharedClientWithReplyQueue<O>>, FreeRtosError>
[src]

pub fn get_receive_queue(&self) -> &Queue<I>[src]

pub fn reply<D: DurationTicks>(
    &self,
    received_message: I,
    reply: O,
    max_wait: D
) -> Result<bool, FreeRtosError>
[src]

impl<I, O> Processor<InputMessage<I>, O> where
    I: Copy,
    O: Copy
[src]

pub fn reply_val<D: DurationTicks>(
    &self,
    received_message: InputMessage<I>,
    reply: O,
    max_wait: D
) -> Result<bool, FreeRtosError>
[src]

Auto Trait Implementations

impl<I, O> Send for Processor<I, O>

impl<I, O> Sync for Processor<I, O>

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]