/// Maps the error to a string slice suitable for use as metric label.
Maps the error to a string slice suitable for use as metric label.
Maps the error to a string slice suitable for use as metric label .
pub fn to_label_value(&self) -> &'static str {
        match self {
            Self::InvalidPayload(_) => "InvalidPayload",
            Self::InvalidWitness(_) => "InvalidWitness",
            Self::WitnessPruningFailed(_) => "WitnessPruningFailed",
            Self::DecodeFailed(_) => "DecodeFailed",
            Self::InvalidAppend(_) => "InvalidAppend",
            Self::TakeBeforeSliceBegin => "TakeBeforeSliceBegin",
        }
    }
pub fn to_label_value ( & self ) -> & ' static str { match self { Self :: InvalidPayload ( _ ) => " " , Self :: InvalidWitness ( _ ) => " " , Self :: WitnessPruningFailed ( _ ) => " " , Self :: DecodeFailed ( _ ) => " " , Self :: InvalidAppend ( _ ) => " " , Self :: TakeBeforeSliceBegin => " " , } }
Maps the error to a string slice suitable for use as metric label.
Maps the error to a string slice suitable for use as metric label .
&self