PollInput implementation

This commit is contained in:
Zachary Sunforge
2023-06-23 16:55:33 -07:00
parent 07cb49bee5
commit 2a0013481c
6 changed files with 97 additions and 24 deletions

View File

@ -5,4 +5,4 @@ pub mod transducer;
pub mod cell;
mod error;
pub use error::*;
pub use error::CriticalError;

View File

@ -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>;
}