Skip to main content

classify_wire_code

Function classify_wire_code 

Source
pub fn classify_wire_code(
    code: &str,
    retryable: bool,
) -> (ErrorClass, RetryableSource)
Expand description

Maps one action-layer wire error code to the closed ErrorClass (04 §6.2 / §9.6; the wire code set is open — unknown codes fall through on the daemon’s declared retryable bit).