Enum nakadion::streaming_client::ConnectError [−][src]
pub enum ConnectError { Token(String), Connection(String), Forbidden(String, FlowId), Unauthorized(String, FlowId), BadRequest(String, FlowId), Conflict(String, FlowId), SubscriptionNotFound(String, FlowId), Other(String, FlowId), }
Errors that can happen when connectiong to Nakadi for extablishing a streaming connection.
Variants
Token(String)
Connection(String)
Forbidden(String, FlowId)
BadRequest(String, FlowId)
Conflict(String, FlowId)
SubscriptionNotFound(String, FlowId)
Other(String, FlowId)
Methods
impl ConnectError
[src]
impl ConnectError
pub fn is_permanent(&self) -> bool
[src]
pub fn is_permanent(&self) -> bool
Returns true if this error can most possibly not be mitigated by performing a retry.
Trait Implementations
impl Debug for ConnectError
[src]
impl Debug for ConnectError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<TokenError> for ConnectError
[src]
impl From<TokenError> for ConnectError
fn from(err: TokenError) -> ConnectError
[src]
fn from(err: TokenError) -> ConnectError
Performs the conversion.
impl From<Error> for ConnectError
[src]
impl From<Error> for ConnectError
fn from(e: Error) -> ConnectError
[src]
fn from(e: Error) -> ConnectError
Performs the conversion.
Auto Trait Implementations
impl Send for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Sync for ConnectError