We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81bc367 commit a6c77ccCopy full SHA for a6c77cc
embedded-can/src/asynch.rs
@@ -12,14 +12,6 @@ pub trait Can {
12
/// Awaits until space is available in the transmit buffer.
13
async fn transmit(&mut self, frame: &Self::Frame) -> Result<(), Self::Error>;
14
15
- /// Tries to put a frame in the transmit buffer.
16
- /// If no space is available in the transmit buffer `None` is returned.
17
- fn try_transmit(&mut self, frame: &Self::Frame) -> Option<Result<(), Self::Error>>;
18
-
19
/// Awaits until a frame was received or an error occurred.
20
async fn receive(&mut self) -> Result<Self::Frame, Self::Error>;
21
22
- /// Tries to receive a frame from the receive buffer.
23
- /// If no frame is available `None` is returned.
24
- fn try_receive(&mut self) -> Option<Result<Self::Frame, Self::Error>>;
25
}
0 commit comments