pub fn kind(&self) -> Cow<'static, str> {
        match self {
            PeerError::ConnectionClosed => "ConnectionClosed".into(),
            PeerError::ConnectionDropped => "ConnectionDropped".into(),
            PeerError::ClientDropped => "ClientDropped".into(),
            PeerError::HeartbeatTaskExited => "HeartbeatTaskExited".into(),
            PeerError::ConnectionTaskExited => "ConnectionTaskExited".into(),
            PeerError::ClientRequestTimeout => "ClientRequestTimeout".into(),
            // TODO: add error kinds or summaries to `SerializationError`
            PeerError::Serialization(inner) => format!("Serialization({})", inner).into(),
            PeerError::DuplicateHandshake => "DuplicateHandshake".into(),
            PeerError::Overloaded => "Overloaded".into(),
            PeerError::NotFound(_) => "NotFound".into(),
        }
    }
/// Returns the Zebra internal handler type as a string.
Returns the Zebra internal handler type as a string.
Returns the Zebra internal handler type as a string .
pub fn kind(&self) -> Cow<'static, str> {
        match self {
            PeerError::ConnectionClosed => "ConnectionClosed".into(),
            PeerError::ConnectionDropped => "ConnectionDropped".into(),
            PeerError::ClientDropped => "ClientDropped".into(),
            PeerError::HeartbeatTaskExited => "HeartbeatTaskExited".into(),
            PeerError::ConnectionTaskExited => "ConnectionTaskExited".into(),
            PeerError::ClientRequestTimeout => "ClientRequestTimeout".into(),
            // TODO: add error kinds or summaries to `SerializationError`
            PeerError::Serialization(inner) => format!("Serialization({})", inner).into(),
            PeerError::DuplicateHandshake => "DuplicateHandshake".into(),
            PeerError::Overloaded => "Overloaded".into(),
            PeerError::NotFound(_) => "NotFound".into(),
        }
    }
pub fn kind ( & self ) -> Cow < ' static , str > { match self { PeerError :: ConnectionClosed => " " . into ( ) , PeerError :: ConnectionDropped => " " . into ( ) , PeerError :: ClientDropped => " " . into ( ) , PeerError :: HeartbeatTaskExited => " " . into ( ) , PeerError :: ConnectionTaskExited => " " . into ( ) , PeerError :: ClientRequestTimeout => " " . into ( ) , // TODO: add error kinds or summaries to `SerializationError` PeerError :: Serialization ( inner ) => format ! ( " " inner ) . into ( ) , PeerError :: DuplicateHandshake => " " . into ( ) , PeerError :: Overloaded => " " . into ( ) , PeerError :: NotFound ( _ ) => " " . into ( ) , } }
Returns the Zebra internal handler type as a string.
Returns the Zebra internal handler type as a string .
&self