Skip to content

Commit

Permalink
remove some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pd0wm committed May 11, 2024
1 parent ea1c2b1 commit f200038
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/socketcan/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,11 @@ impl CanFdSocket {
}
}

/// Enable or disable FD mode on a socket.
pub fn set_fd_mode(&self, enabled: bool) -> std::io::Result<()> {
let enable = c_int::from(enabled);
self.set_socket_option(SOL_CAN_RAW, CAN_RAW_FD_FRAMES, &enable)
}

/// Change socket to non-blocking mode or back to blocking mode.
pub fn set_nonblocking(&self, nonblocking: bool) -> std::io::Result<()> {
self.as_raw_socket().set_nonblocking(nonblocking)
}
Expand Down

0 comments on commit f200038

Please sign in to comment.