pub struct GraphPool { /* private fields */ }Expand description
图数据库连接池
Implementations§
Source§impl GraphPool
impl GraphPool
pub fn new(config: GraphConfig) -> Self
pub fn config(&self) -> &GraphConfig
pub async fn acquire(&self) -> Result<GraphConnection, GraphError>
pub async fn release(&self, conn: GraphConnection)
pub async fn size(&self) -> usize
Auto Trait Implementations§
impl !RefUnwindSafe for GraphPool
impl !UnwindSafe for GraphPool
impl Freeze for GraphPool
impl Send for GraphPool
impl Sync for GraphPool
impl Unpin for GraphPool
impl UnsafeUnpin for GraphPool
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