pub struct QueuedMaster { /* private fields */ }Expand description
Multi-producer async master backed by a single worker task.
Implementations§
Source§impl QueuedMaster
impl QueuedMaster
Sourcepub async fn new_rs485(
path: &str,
baud_rate: u32,
buffer: usize,
) -> Result<Arc<Self>>
pub async fn new_rs485( path: &str, baud_rate: u32, buffer: usize, ) -> Result<Arc<Self>>
Build a queued master that spawns a worker task for one serial port.
buffer is the queue depth of the internal MPSC channel; requests are
buffered up to this limit. Passing 0 will panic in
tokio::sync::mpsc::channel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueuedMaster
impl RefUnwindSafe for QueuedMaster
impl Send for QueuedMaster
impl Sync for QueuedMaster
impl Unpin for QueuedMaster
impl UnwindSafe for QueuedMaster
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