Trait thrift_pool::ThriftConnection [−][src]
pub trait ThriftConnection {
type Error;
fn is_valid(&mut self) -> Result<(), Self::Error>;
fn has_broken(&mut self) -> bool { ... }
}Expand description
Checks the validity of the connection
Used by ThriftConnectionManager to implement parts of
[bb8::ManageConnection] and/or r2d2::ManageConnection
Associated Types
See r2d2::ManageConnection::Error and/or [bb8::ManageConnection::Error]
Required methods
Provided methods
fn has_broken(&mut self) -> bool
fn has_broken(&mut self) -> bool
See r2d2::ManageConnection::has_broken and/or [bb8::ManageConnection::has_broken]
