lxmf-embedded-mini 0.5.2

No-alloc mini LXMF runtime for embedded targets.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::MiniResult;

#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub enum LinkState {
    Down,
    Connecting,
    Up,
}

pub trait MiniTransport {
    fn link_state(&self) -> LinkState;
    fn send_frame(&mut self, frame: &[u8]) -> MiniResult<()>;
    fn poll_frame(&mut self, out: &mut [u8]) -> MiniResult<Option<usize>>;
}