@@ -10,13 +10,13 @@ pub trait Write<Word> {
10
10
/// An implementation can choose to buffer the write, returning `Ok(())`
11
11
/// after the complete slice has been written to a buffer, but before all
12
12
/// words have been sent via the serial interface. To make sure that
13
- /// everything has been sent, call [`bflush `] after this function returns.
13
+ /// everything has been sent, call [`flush `] after this function returns.
14
14
///
15
- /// [`bflush `]: #tymethod.bflush
16
- fn bwrite_all ( & mut self , buffer : & [ Word ] ) -> Result < ( ) , Self :: Error > ;
15
+ /// [`flush `]: #tymethod.flush
16
+ fn write ( & mut self , buffer : & [ Word ] ) -> Result < ( ) , Self :: Error > ;
17
17
18
18
/// Block until the serial interface has sent all buffered words
19
- fn bflush ( & mut self ) -> Result < ( ) , Self :: Error > ;
19
+ fn flush ( & mut self ) -> Result < ( ) , Self :: Error > ;
20
20
}
21
21
22
22
/// Blocking serial write
@@ -38,15 +38,15 @@ pub mod write {
38
38
{
39
39
type Error = S :: Error ;
40
40
41
- fn bwrite_all ( & mut self , buffer : & [ Word ] ) -> Result < ( ) , Self :: Error > {
41
+ fn write ( & mut self , buffer : & [ Word ] ) -> Result < ( ) , Self :: Error > {
42
42
for word in buffer {
43
43
nb:: block!( self . write( word. clone( ) ) ) ?;
44
44
}
45
45
46
46
Ok ( ( ) )
47
47
}
48
48
49
- fn bflush ( & mut self ) -> Result < ( ) , Self :: Error > {
49
+ fn flush ( & mut self ) -> Result < ( ) , Self :: Error > {
50
50
nb:: block!( self . flush( ) ) ?;
51
51
Ok ( ( ) )
52
52
}
0 commit comments