pub struct PortTxQueue { /* private fields */ }Expand description
Serializes exchange / AT jobs on one port. Concurrent callers wait in FIFO order.
Implementations§
Source§impl PortTxQueue
impl PortTxQueue
pub fn new() -> Self
pub fn cancel_flag(&self) -> Arc<AtomicBool> ⓘ
pub fn configure_at_session(&self, session: AtSessionConfig)
pub fn at_session(&self) -> AtSessionConfig
Sourcepub fn cancel_all(&self)
pub fn cancel_all(&self)
Reject every job queued so far. The running job (if any) is stopped through the port’s cancel flag by the caller; jobs submitted after this call run normally.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PortTxQueue
impl Forget for PortTxQueue
impl RefUnwindSafe for PortTxQueue
impl Send for PortTxQueue
impl Sync for PortTxQueue
impl Unpin for PortTxQueue
impl UnsafeUnpin for PortTxQueue
impl UnwindSafe for PortTxQueue
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