eldritch_shield 0.2.1

Crate for interfacing with the Blackmagic 3G-SDI Shield for Arduino
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::alloc;
#[derive(Debug, Clone, PartialEq)]
pub enum ShieldError<E> {
    Transport(E),
    InvalidResponse,
    OutOfRange,
    MemoryAllocationError(alloc::LayoutError),
    // add others as needed
}

impl<E> From<E> for ShieldError<E> {
    fn from(err: E) -> Self {
        ShieldError::Transport(err)
    }
}