Enum scylla::transport::errors::NewSessionError [−][src]
pub enum NewSessionError {
FailedToResolveAddress(String),
EmptyKnownNodesList,
DbError(DbError, String),
BadQuery(BadQuery),
IoError(Arc<Error>),
ProtocolError(&'static str),
InvalidMessage(String),
TimeoutError,
}
Expand description
Error that occured during session creation
Variants
FailedToResolveAddress(String)
Failed to resolve hostname passed in Session creation
Tuple Fields of FailedToResolveAddress
0: String
List of known nodes passed to Session constructor is empty There needs to be at least one node to connect to
Database sent a response containing some error with a message
BadQuery(BadQuery)
Caller passed an invalid query
Tuple Fields of BadQuery
0: BadQuery
Input/Output error has occured, connection broken etc.
ProtocolError(&'static str)
Unexpected message received
Tuple Fields of ProtocolError
0: &'static str
InvalidMessage(String)
Invalid message received
Tuple Fields of InvalidMessage
0: String
Timeout error has occured, couldn’t connect to node in time.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for NewSessionError
impl Send for NewSessionError
impl Sync for NewSessionError
impl Unpin for NewSessionError
impl !UnwindSafe for NewSessionError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more