More formatting!
This commit is contained in:
parent
58edefff6e
commit
a345dd9e2b
@ -24,8 +24,7 @@ pub trait Spi<Word> {
|
|||||||
type Error;
|
type Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait FullDuplex<Word> : Spi<Word> + Write<Word> + Read<Word> {
|
pub trait FullDuplex<Word>: Spi<Word> + Write<Word> + Read<Word> {
|
||||||
|
|
||||||
type WriteReadFuture<'a>: Future<Output = Result<(), Self::Error>> + 'a
|
type WriteReadFuture<'a>: Future<Output = Result<(), Self::Error>> + 'a
|
||||||
where
|
where
|
||||||
Self: 'a;
|
Self: 'a;
|
||||||
@ -37,8 +36,7 @@ pub trait FullDuplex<Word> : Spi<Word> + Write<Word> + Read<Word> {
|
|||||||
) -> Self::WriteReadFuture<'a>;
|
) -> Self::WriteReadFuture<'a>;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait Write<Word> : Spi<Word>{
|
pub trait Write<Word>: Spi<Word> {
|
||||||
|
|
||||||
type WriteFuture<'a>: Future<Output = Result<(), Self::Error>> + 'a
|
type WriteFuture<'a>: Future<Output = Result<(), Self::Error>> + 'a
|
||||||
where
|
where
|
||||||
Self: 'a;
|
Self: 'a;
|
||||||
@ -46,8 +44,7 @@ pub trait Write<Word> : Spi<Word>{
|
|||||||
fn write<'a>(&'a mut self, data: &'a [Word]) -> Self::WriteFuture<'a>;
|
fn write<'a>(&'a mut self, data: &'a [Word]) -> Self::WriteFuture<'a>;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait Read<Word> : Spi<Word>{
|
pub trait Read<Word>: Spi<Word> {
|
||||||
|
|
||||||
type ReadFuture<'a>: Future<Output = Result<(), Self::Error>> + 'a
|
type ReadFuture<'a>: Future<Output = Result<(), Self::Error>> + 'a
|
||||||
where
|
where
|
||||||
Self: 'a;
|
Self: 'a;
|
||||||
|
Loading…
Reference in New Issue
Block a user