PollInput implementation
This commit is contained in:
@ -5,4 +5,4 @@ pub mod transducer;
|
||||
pub mod cell;
|
||||
mod error;
|
||||
|
||||
pub use error::*;
|
||||
pub use error::CriticalError;
|
||||
|
@ -1,5 +1,7 @@
|
||||
use crate::CriticalError;
|
||||
|
||||
pub trait Poll {
|
||||
type Value: Copy;
|
||||
|
||||
async fn poll(&self) -> Self::Value;
|
||||
async fn poll(&self) -> Result<Self::Value, CriticalError>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user