pub trait SimpleCodec: Sealed + Sized {
    // Required methods
    fn into_status_code(self) -> i32;
    fn from_status_code(status_code: i32) -> Option<Self>;
}
Expand description

Type that can be encoded and decoded into status code

Required Methods§

source

fn into_status_code(self) -> i32

Convert type into status code

source

fn from_status_code(status_code: i32) -> Option<Self>

Convert status code into self

Implementors§