Skip to main content

CanSocketRx

Trait CanSocketRx 

Source
pub trait CanSocketRx {
    type Frame: Frame;
    type Error: Error;

    // Required method
    fn receive(
        &mut self,
    ) -> impl Future<Output = Result<Self::Frame, Self::Error>>;
}

Required Associated Types§

Source

type Frame: Frame

Associated frame type.

Source

type Error: Error

Associated error type.

Required Methods§

Source

fn receive(&mut self) -> impl Future<Output = Result<Self::Frame, Self::Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl CanSocketRx for UdsSocketRx

Available on Linux only.