1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#[derive(Debug)]
pub enum FtlError {
    NoLabel,
    IoError,
    RingError,
    DecodeError,
    MissingPart,
    ExternalError,
    Unauthenticated,
    
    InvalidProtocolVersion,
    UnsupportedProtocolVersion,
    MissingCodecInformation,
    UnimplementedCommand,
    
    Disconnect,
}
impl FtlError {
    pub fn is_err(&self) -> bool {
        match self {
            FtlError::Disconnect => false,
            _ => true
        }
    }
}
