Skip to main content

CuFeedbackRx

Trait CuFeedbackRx 

Source
pub trait CuFeedbackRx:
    Debug
    + Send
    + Sync {
    // Required method
    fn try_recv_feedback(
        &mut self,
        packet: &mut [u8],
    ) -> Result<Option<usize>, CuStreamRxError>;
}
Expand description

Optional advisory receive direction. This logical interface may share the physical stream carrier. A shared endpoint must have one receive owner and route complete packet kinds; cloned competing readers cannot provide routing. Protocol decoding, capability negotiation, and feedback policy belong above it.

The complete-packet integrity contract of CuStreamRx applies here too. Discard damaged or truncated frames in the transport adapter before delivery. Reports may be lost, duplicated, or reordered; report sequencing belongs to the feedback controller.

Required Methods§

Source

fn try_recv_feedback( &mut self, packet: &mut [u8], ) -> Result<Option<usize>, CuStreamRxError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§