pub struct AsyncToBlockingQueueTaskBuilder<T> { /* private fields */ }Expand description
Builder for a task that can receive items from an asynchronous queue and send them to a
blocking Queue.
Implementations§
Source§impl<T> AsyncToBlockingQueueTaskBuilder<T>
impl<T> AsyncToBlockingQueueTaskBuilder<T>
Sourcepub fn new(name: &'static CStr, queue: Queue<T>, capacity: UBaseType_t) -> Self
pub fn new(name: &'static CStr, queue: Queue<T>, capacity: UBaseType_t) -> Self
Creates a new queue bridge task builder.
Sourcepub fn priority(self, priority: TaskPriority) -> Self
pub fn priority(self, priority: TaskPriority) -> Self
Sets the priority of the FreeRTOS task.
Sourcepub fn stack_size(self, stack_size: StackType_t) -> Self
pub fn stack_size(self, stack_size: StackType_t) -> Self
Sets the stack size of the FreeRTOS task.
Sourcepub fn create(self) -> Result<AsyncQueueSender<T>, FreeRtosError>
pub fn create(self) -> Result<AsyncQueueSender<T>, FreeRtosError>
Creates the task and returns a sender to send items to the blocking queue in an asynchronous manner.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for AsyncToBlockingQueueTaskBuilder<T>
impl<T> RefUnwindSafe for AsyncToBlockingQueueTaskBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for AsyncToBlockingQueueTaskBuilder<T>
impl<T> Sync for AsyncToBlockingQueueTaskBuilder<T>
impl<T> Unpin for AsyncToBlockingQueueTaskBuilder<T>
impl<T> UnwindSafe for AsyncToBlockingQueueTaskBuilder<T>where
T: UnwindSafe,
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