robokit 0.3.0

Build custom firmware for simple robotic automation
Documentation
1
2
3
4
5
6
7
8
9
10
pub mod switch;

use crate::error::Error;

pub trait Sensor {
    type Message;
    type Error: Error;

    fn sense(&mut self) -> Result<Option<Self::Message>, Self::Error>;
}