pub fn send<D: DurationTicks>(&self, item: T, max_wait: D) -> Result<(), FreeRtosError> {
        unsafe {
            if freertos_rs_queue_send(
                self.queue,
                &item as *const _ as FreeRtosVoidPtr,
                max_wait.to_ticks(),
            ) != 0
            {
                Err(FreeRtosError::QueueSendTimeout)
            } else {
                Ok(())
            }
        }
    }
/// Send an item to the end of the queue. Wait for the queue to have empty space for it.
Send an item to the end of the queue. Wait for the queue to have empty space for it.
Send an item to the end of the queue . Wait for the queue to have empty space for it .
pub fn send<D: DurationTicks>(&self, item: T, max_wait: D) -> Result<(), FreeRtosError> {
        unsafe {
            if freertos_rs_queue_send(
                self.queue,
                &item as *const _ as FreeRtosVoidPtr,
                max_wait.to_ticks(),
            ) != 0
            {
                Err(FreeRtosError::QueueSendTimeout)
            } else {
                Ok(())
            }
        }
    }
pub fn send < D : DurationTicks > ( & self , item : T , max_wait : D ) -> Result < ( ) , FreeRtosError > { unsafe { if freertos_rs_queue_send ( self . queue , & item as * const _ as FreeRtosVoidPtr , max_wait . to_ticks ( ) , ) != 0 { Err ( FreeRtosError :: QueueSendTimeout ) } else { Ok ( ( ) ) } } }
Send an item to the end of the queue.
Send an item to the end of the queue .
&self
item
T
max_wait
D
&self
item
T
max_wait
D