Struct r2d2_cypher::CypherConnectionManager
[−]
[src]
pub struct CypherConnectionManager { pub url: String, }
A struct that holds connection specific information.
Fields
url: String
the URL to the database
Trait Implementations
impl Debug for CypherConnectionManager
[src]
impl ManageConnection for CypherConnectionManager
[src]
type Connection = GraphClient
The connection type this manager deals with.
type Error = GraphError
The error type returned by Connection
s.
fn connect(&self) -> Result<GraphClient, GraphError>
[src]
Attempts to create a new connection.
fn is_valid(&self, conn: &mut GraphClient) -> Result<(), GraphError>
[src]
Determines if the connection is still connected to the database. Read more
fn has_broken(&self, _: &mut GraphClient) -> bool
[src]
Quickly determines if the connection is no longer usable. Read more