Skip to main content

SplitTxRx

Trait SplitTxRx 

Source
pub trait SplitTxRx {
    type Tx;
    type Rx;

    // Required method
    fn split(self) -> (Self::Tx, Self::Rx);
}
Expand description

Split a CAN interface into transmit and receive halves.

This trait is usually implemented for a concrete CAN driver type that internally owns shared state, returning lightweight wrapper types (Tx, Rx) that can be borrowed independently.

Required Associated Types§

Source

type Tx

Transmit half type.

This typically implements TxFrameIo and/or AsyncTxFrameIo.

Source

type Rx

Receive half type.

This typically implements RxFrameIo and/or AsyncRxFrameIo.

Required Methods§

Source

fn split(self) -> (Self::Tx, Self::Rx)

Split into (Tx, Rx) halves.

Implementors§