pub struct MiddlewarePoolOptions {
pub test_on_check_out: bool,
}Expand description
Shared options for bb8-backed middleware pools.
Fields§
§test_on_check_out: boolWhether bb8 should call the backend’s validation hook before checkout.
Implementations§
Source§impl MiddlewarePoolOptions
impl MiddlewarePoolOptions
pub fn new() -> Self
pub fn with_test_on_check_out(self, test_on_check_out: bool) -> Self
Trait Implementations§
Source§impl Clone for MiddlewarePoolOptions
impl Clone for MiddlewarePoolOptions
Source§fn clone(&self) -> MiddlewarePoolOptions
fn clone(&self) -> MiddlewarePoolOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MiddlewarePoolOptions
Source§impl Debug for MiddlewarePoolOptions
impl Debug for MiddlewarePoolOptions
Source§impl Default for MiddlewarePoolOptions
impl Default for MiddlewarePoolOptions
impl Eq for MiddlewarePoolOptions
Source§impl PartialEq for MiddlewarePoolOptions
impl PartialEq for MiddlewarePoolOptions
impl StructuralPartialEq for MiddlewarePoolOptions
Auto Trait Implementations§
impl Freeze for MiddlewarePoolOptions
impl RefUnwindSafe for MiddlewarePoolOptions
impl Send for MiddlewarePoolOptions
impl Sync for MiddlewarePoolOptions
impl Unpin for MiddlewarePoolOptions
impl UnsafeUnpin for MiddlewarePoolOptions
impl UnwindSafe for MiddlewarePoolOptions
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