Struct canadensis_serial::SerialTransmitter
source · [−]pub struct SerialTransmitter<D, const C: usize> { /* private fields */ }
Expand description
A transmitter for the UAVCAN/serial transport
C is the size of the transmit queue in bytes
Implementations
sourceimpl<D, const C: usize> SerialTransmitter<D, C>
impl<D, const C: usize> SerialTransmitter<D, C>
Trait Implementations
sourceimpl<I, D, const C: usize> Transmitter<I> for SerialTransmitter<D, C> where
I: Instant,
D: TransmitDriver,
impl<I, D, const C: usize> Transmitter<I> for SerialTransmitter<D, C> where
I: Instant,
D: TransmitDriver,
type Transport = SerialTransport
type Transport = SerialTransport
The transport that this transmitter works with
type Driver = D
type Driver = D
The driver type that this transmitter uses to send frames
sourcefn push<A, CL>(
&mut self,
transfer: Transfer<A, I, Self::Transport>,
_clock: &mut CL,
_driver: &mut D
) -> Result<(), Self::Error> where
A: AsRef<[u8]>,
CL: Clock<Instant = I>,
fn push<A, CL>(
&mut self,
transfer: Transfer<A, I, Self::Transport>,
_clock: &mut CL,
_driver: &mut D
) -> Result<(), Self::Error> where
A: AsRef<[u8]>,
CL: Clock<Instant = I>,
Starts the process of sending an outgoing transfer Read more
Auto Trait Implementations
impl<D, const C: usize> RefUnwindSafe for SerialTransmitter<D, C> where
D: RefUnwindSafe,
impl<D, const C: usize> Send for SerialTransmitter<D, C> where
D: Send,
impl<D, const C: usize> Sync for SerialTransmitter<D, C> where
D: Sync,
impl<D, const C: usize> Unpin for SerialTransmitter<D, C> where
D: Unpin,
impl<D, const C: usize> UnwindSafe for SerialTransmitter<D, C> where
D: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more