Skip to main content

FrameCodec

Derive Macro FrameCodec 

Source
#[derive(FrameCodec)]
{
    // Attributes available to this derive:
    #[frame]
}
Expand description

Derives both FrameRead and FrameWrite.

Convenience derive equivalent to #[derive(FrameRead, FrameWrite)]. Use when a type participates in both decode and encode paths.

#[derive(FrameCodec)]
#[frame(error = "UdsError")]
pub struct DiagnosticSessionControlRequest {
    pub session_type: SessionType,
}