pub struct EUsbWireTx<M: RawMutex + 'static, D: Driver<'static> + 'static> { /* private fields */ }
Expand description
A WireTx
implementation for embassy-usb 0.3.
Trait Implementations§
Source§impl<M: RawMutex + 'static, D: Driver<'static> + 'static> WireTx for EUsbWireTx<M, D>
impl<M: RawMutex + 'static, D: Driver<'static> + 'static> WireTx for EUsbWireTx<M, D>
Source§type Error = WireTxErrorKind
type Error = WireTxErrorKind
The error type of this connection. Read more
Source§async fn send<T: Serialize + ?Sized>(
&self,
hdr: VarHeader,
msg: &T,
) -> Result<(), Self::Error>
async fn send<T: Serialize + ?Sized>( &self, hdr: VarHeader, msg: &T, ) -> Result<(), Self::Error>
Send a single frame to the client, returning when send is complete.
Source§async fn send_raw(&self, buf: &[u8]) -> Result<(), Self::Error>
async fn send_raw(&self, buf: &[u8]) -> Result<(), Self::Error>
Send a single frame to the client, without handling serialization
Source§async fn send_log_str(
&self,
kkind: VarKeyKind,
s: &str,
) -> Result<(), Self::Error>
async fn send_log_str( &self, kkind: VarKeyKind, s: &str, ) -> Result<(), Self::Error>
Send a logging message on the
LoggingTopic
Read moreSource§async fn send_log_fmt<'a>(
&self,
kkind: VarKeyKind,
args: Arguments<'a>,
) -> Result<(), Self::Error>
async fn send_log_fmt<'a>( &self, kkind: VarKeyKind, args: Arguments<'a>, ) -> Result<(), Self::Error>
Send a logging message on the
LoggingTopic
Read moreimpl<M: Copy + RawMutex + 'static, D: Copy + Driver<'static> + 'static> Copy for EUsbWireTx<M, D>
Auto Trait Implementations§
impl<M, D> Freeze for EUsbWireTx<M, D>
impl<M, D> !RefUnwindSafe for EUsbWireTx<M, D>
impl<M, D> Send for EUsbWireTx<M, D>
impl<M, D> Sync for EUsbWireTx<M, D>
impl<M, D> Unpin for EUsbWireTx<M, D>
impl<M, D> !UnwindSafe for EUsbWireTx<M, 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