pub trait CanExt: Sized + Instance {
// Required methods
fn can(self, pins: (impl Into<Self::Tx>, impl Into<Self::Rx>)) -> Can<Self>;
fn tx(self, tx_pin: impl Into<Self::Tx>) -> Can<Self>
where NoPin: Into<Self::Rx>;
fn rx(self, rx_pin: impl Into<Self::Rx>) -> Can<Self>
where NoPin: Into<Self::Tx>;
}
Required Methods§
fn can(self, pins: (impl Into<Self::Tx>, impl Into<Self::Rx>)) -> Can<Self>
fn tx(self, tx_pin: impl Into<Self::Tx>) -> Can<Self>
fn rx(self, rx_pin: impl Into<Self::Rx>) -> Can<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.