/// A response indicating failure with some error code.
A response indicating failure with some error code.
A response indicating failure with some error code .
pub fn error(err: impl Debug) -> Self {
        let mut msg: String<MAX_RESPONSE_SIZE> = String::new();
        if write!(&mut msg, "{:?}", err).is_err() {
            msg = String::from("Error");
        }
        Self::custom(-1, &msg)
    }
pub fn error ( err : impl Debug ) -> Self { let mut msg : String < MAX_RESPONSE_SIZE > = String :: new ( ) ; if write ! ( mut msg " " err ) . is_err ( ) { msg = String :: from ( " " ) ; } Self :: custom ( - 1 , & msg ) }
A response indicating failure with some error code.
A response indicating failure with some error code .
err
impl Debug