pub struct ConnPool { /* private fields */ }Expand description
A pool of KMIP clients.
Connections are re-used until timed out or the connection is lost, and are re-created as necessary.
Implementations§
Source§impl ConnPool
impl ConnPool
pub fn new( server_id: String, conn_settings: Arc<ConnectionSettings>, max_conncurrent_connections: u32, max_life_time: Option<Duration>, max_idle_time: Option<Duration>, ) -> Result<ConnPool, KmipConnError>
pub fn server_id(&self) -> &str
pub fn conn_settings(&self) -> &ConnectionSettings
pub fn get(&self) -> Result<KmipConn, KmipConnError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ConnPool
impl !UnwindSafe for ConnPool
impl Forget for ConnPool
impl Freeze for ConnPool
impl Send for ConnPool
impl Sync for ConnPool
impl Unpin for ConnPool
impl UnsafeUnpin for ConnPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more