File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -781,16 +781,16 @@ pub trait Capture {
781
781
fn capture ( & mut self , channel : Self :: Channel ) -> nb:: Result < Self :: Capture , Self :: Error > ;
782
782
783
783
/// Disables a capture `channel`
784
- fn disable ( & mut self , channel : Self :: Channel ) ;
784
+ fn disable ( & mut self , channel : Self :: Channel ) -> Result < ( ) , Self :: Error > ;
785
785
786
786
/// Enables a capture `channel`
787
- fn enable ( & mut self , channel : Self :: Channel ) ;
787
+ fn enable ( & mut self , channel : Self :: Channel ) -> Result < ( ) , Self :: Error > ;
788
788
789
789
/// Returns the current resolution
790
- fn get_resolution ( & self ) -> Self :: Time ;
790
+ fn get_resolution ( & self ) -> Result < Self :: Time , Self :: Error > ;
791
791
792
792
/// Sets the resolution of the capture timer
793
- fn set_resolution < R > ( & mut self , resolution : R )
793
+ fn set_resolution < R > ( & mut self , resolution : R ) -> Result < ( ) , Self :: Error >
794
794
where
795
795
R : Into < Self :: Time > ;
796
796
}
You can’t perform that action at this time.
0 commit comments