Skip to main content

x_wing/
error.rs

1use core::fmt;
2
3/// Error type when decapsulation failed.
4#[derive(Clone, Copy, Debug)]
5pub struct DecapsulationError;
6
7impl core::error::Error for DecapsulationError {}
8
9impl fmt::Display for DecapsulationError {
10    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
11        write!(f, "decapsulation error")
12    }
13}