pub struct CanTx<'d> { /* private fields */ }
Expand description
FDCAN Tx only Instance
Implementations§
source§impl<'c, 'd> CanTx<'d>
impl<'c, 'd> CanTx<'d>
sourcepub async fn write(&mut self, frame: &Frame) -> Option<Frame>
pub async fn write(&mut self, frame: &Frame) -> Option<Frame>
Queues the message to be sent but exerts backpressure. If a lower-priority frame is dropped from the mailbox, it is returned. If no lower-priority frames can be replaced, this call asynchronously waits for a frame to be successfully transmitted, then tries again.
sourcepub async fn write_fd(&mut self, frame: &FdFrame) -> Option<FdFrame>
pub async fn write_fd(&mut self, frame: &FdFrame) -> Option<FdFrame>
Queues the message to be sent but exerts backpressure. If a lower-priority frame is dropped from the mailbox, it is returned. If no lower-priority frames can be replaced, this call asynchronously waits for a frame to be successfully transmitted, then tries again.
Auto Trait Implementations§
impl<'d> Freeze for CanTx<'d>
impl<'d> !RefUnwindSafe for CanTx<'d>
impl<'d> !Send for CanTx<'d>
impl<'d> !Sync for CanTx<'d>
impl<'d> Unpin for CanTx<'d>
impl<'d> !UnwindSafe for CanTx<'d>
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