pub trait SerialExt: Sized + Instance {
// Required methods
fn serial<Otype, PULL: UpMode>(
self,
pins: (impl RInto<Self::Tx<Otype>, 0>, impl RInto<Self::Rx<PULL>, 0>),
config: impl Into<Config>,
rcc: &mut Rcc,
) -> Serial<Self, Otype, PULL>;
fn tx<Otype>(
self,
tx_pin: impl RInto<Self::Tx<Otype>, 0>,
config: impl Into<Config>,
rcc: &mut Rcc,
) -> Tx<Self>;
fn rx<PULL: UpMode>(
self,
rx_pin: impl RInto<Self::Rx<PULL>, 0>,
config: impl Into<Config>,
rcc: &mut Rcc,
) -> Rx<Self>;
}
Required Methods§
fn serial<Otype, PULL: UpMode>( self, pins: (impl RInto<Self::Tx<Otype>, 0>, impl RInto<Self::Rx<PULL>, 0>), config: impl Into<Config>, rcc: &mut Rcc, ) -> Serial<Self, Otype, PULL>
fn tx<Otype>( self, tx_pin: impl RInto<Self::Tx<Otype>, 0>, config: impl Into<Config>, rcc: &mut Rcc, ) -> Tx<Self>
fn rx<PULL: UpMode>( self, rx_pin: impl RInto<Self::Rx<PULL>, 0>, config: impl Into<Config>, rcc: &mut Rcc, ) -> Rx<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.