Skip to content

Commit a6c77cc

Browse files
committed
remove try_ methods
1 parent 81bc367 commit a6c77cc

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

embedded-can/src/asynch.rs

-8
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ pub trait Can {
1212
/// Awaits until space is available in the transmit buffer.
1313
async fn transmit(&mut self, frame: &Self::Frame) -> Result<(), Self::Error>;
1414

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-
1915
/// Awaits until a frame was received or an error occurred.
2016
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>>;
2517
}

0 commit comments

Comments
 (0)