Trait CanExt

Source
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§

Source

fn can(self, pins: (impl Into<Self::Tx>, impl Into<Self::Rx>)) -> Can<Self>

Source

fn tx(self, tx_pin: impl Into<Self::Tx>) -> Can<Self>
where NoPin: Into<Self::Rx>,

Source

fn rx(self, rx_pin: impl Into<Self::Rx>) -> Can<Self>
where NoPin: Into<Self::Tx>,

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.

Implementors§

Source§

impl<CAN: Instance> CanExt for CAN