Skip to content

Commit 5f8ed23

Browse files
committed
can: Rename blocking methods
The blocking traits borrowed the naming convention from socketcan. Rename the methods to `transmit()` and `receive()` to make them consistent with the `nb` traits.
1 parent b2d00d1 commit 5f8ed23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/can/blocking.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ pub trait Can {
1010

1111
/// Puts a frame in the transmit buffer. Blocks until space is available in
1212
/// the transmit buffer.
13-
fn write(&mut self, frame: &Self::Frame) -> Result<(), Self::Error>;
13+
fn transmit(&mut self, frame: &Self::Frame) -> Result<(), Self::Error>;
1414

1515
/// Blocks until a frame was received or an error occured.
16-
fn read(&mut self) -> Result<Self::Frame, Self::Error>;
16+
fn receive(&mut self) -> Result<Self::Frame, Self::Error>;
1717
}

0 commit comments

Comments
 (0)