pub struct GraphConnection { /* private fields */ }Expand description
图连接句柄
Implementations§
Source§impl GraphConnection
impl GraphConnection
pub fn new(config: GraphConfig) -> Self
pub fn config(&self) -> &GraphConfig
pub fn is_connected(&self) -> bool
pub fn connect(&mut self) -> Result<(), GraphError>
pub fn disconnect(&mut self)
pub fn engine(&self) -> Option<&InMemoryGraphEngine>
pub fn engine_mut(&mut self) -> Option<&mut InMemoryGraphEngine>
pub fn add_node(&mut self, node: GraphNode) -> Result<(), GraphError>
pub fn add_relationship( &mut self, rel: GraphRelationship, ) -> Result<(), GraphError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GraphConnection
impl RefUnwindSafe for GraphConnection
impl Send for GraphConnection
impl Sync for GraphConnection
impl Unpin for GraphConnection
impl UnsafeUnpin for GraphConnection
impl UnwindSafe for GraphConnection
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