Trait gear_core_errors::SimpleCodec
source · 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§
sourcefn into_status_code(self) -> i32
fn into_status_code(self) -> i32
Convert type into status code
sourcefn from_status_code(status_code: i32) -> Option<Self>
fn from_status_code(status_code: i32) -> Option<Self>
Convert status code into self