Trait pw_status::StatusCode

source ·
pub trait StatusCode {
    // Required method
    fn status_code(self) -> u32;
}
Expand description

Convert a Result into an status code.

Required Methods§

source

fn status_code(self) -> u32

Return a pigweed compatible status code.

Implementors§

source§

impl<T> StatusCode for Result<T>