@@ -28,7 +28,7 @@ pub trait Read {
28
28
/// - `MAK` = master acknowledge
29
29
/// - `NMAK` = master no acknowledge
30
30
/// - `SP` = stop condition
31
- fn read ( & mut self , address : u8 , buffer : & mut [ u8 ] ) -> Result < ( ) , Self :: Error > ;
31
+ fn try_read ( & mut self , address : u8 , buffer : & mut [ u8 ] ) -> Result < ( ) , Self :: Error > ;
32
32
}
33
33
34
34
/// Blocking write
@@ -52,7 +52,7 @@ pub trait Write {
52
52
/// - `SAK` = slave acknowledge
53
53
/// - `Bi` = ith byte of data
54
54
/// - `SP` = stop condition
55
- fn write ( & mut self , addr : u8 , bytes : & [ u8 ] ) -> Result < ( ) , Self :: Error > ;
55
+ fn try_write ( & mut self , addr : u8 , bytes : & [ u8 ] ) -> Result < ( ) , Self :: Error > ;
56
56
}
57
57
58
58
/// Blocking write (iterator version)
@@ -66,7 +66,7 @@ pub trait WriteIter {
66
66
/// # I2C Events (contract)
67
67
///
68
68
/// Same as `Write`
69
- fn write < B > ( & mut self , addr : u8 , bytes : B ) -> Result < ( ) , Self :: Error >
69
+ fn try_write < B > ( & mut self , addr : u8 , bytes : B ) -> Result < ( ) , Self :: Error >
70
70
where
71
71
B : IntoIterator < Item = u8 > ;
72
72
}
@@ -98,7 +98,7 @@ pub trait WriteRead {
98
98
/// - `MAK` = master acknowledge
99
99
/// - `NMAK` = master no acknowledge
100
100
/// - `SP` = stop condition
101
- fn write_read (
101
+ fn try_write_read (
102
102
& mut self ,
103
103
address : u8 ,
104
104
bytes : & [ u8 ] ,
@@ -118,7 +118,7 @@ pub trait WriteIterRead {
118
118
/// # I2C Events (contract)
119
119
///
120
120
/// Same as the `WriteRead` trait
121
- fn write_iter_read < B > (
121
+ fn try_write_iter_read < B > (
122
122
& mut self ,
123
123
address : u8 ,
124
124
bytes : B ,
0 commit comments