Struct r2d2_nats::NatsConnectionManager [−][src]
pub struct NatsConnectionManager { /* fields omitted */ }
Methods
impl NatsConnectionManager
[src]
impl NatsConnectionManager
Trait Implementations
impl Debug for NatsConnectionManager
[src]
impl Debug for NatsConnectionManager
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 ManageConnection for NatsConnectionManager
[src]
impl ManageConnection for NatsConnectionManager
type Connection = Client
The connection type this manager deals with.
type Error = Error
The error type returned by Connection
s.
fn connect(&self) -> Result<Client, Error>
[src]
fn connect(&self) -> Result<Client, Error>
Attempts to create a new connection.
fn is_valid(&self, conn: &mut Client) -> Result<(), Error>
[src]
fn is_valid(&self, conn: &mut Client) -> Result<(), Error>
Determines if the connection is still connected to the database. Read more
fn has_broken(&self, _conn: &mut Client) -> bool
[src]
fn has_broken(&self, _conn: &mut Client) -> bool
Quickly determines if the connection is no longer usable. Read more
Auto Trait Implementations
impl Send for NatsConnectionManager
impl Send for NatsConnectionManager
impl Sync for NatsConnectionManager
impl Sync for NatsConnectionManager