pub struct GD(pub Connection);Tuple Fields§
§0: ConnectionImplementations§
Source§impl GD
impl GD
pub async fn get_async_with_sources<F: AsyncFnOnce(&'static str) -> Result<B, E>, B: AsRef<[u8]>, E: Debug + Send + Sync + 'static>( getter: F, ) -> Result<Self>
pub async fn get_async_no_sources<F: AsyncFnOnce(&'static str) -> Result<B, E>, B: AsRef<[u8]>, E: Debug + Send + Sync + 'static>( getter: F, ) -> Result<Self>
pub fn get_with_sources<F: FnOnce(&'static str) -> Result<B, E>, B: AsRef<[u8]>, E: Debug + Send + Sync + 'static>( getter: F, ) -> Result<Self>
pub fn get_no_sources<F: FnOnce(&'static str) -> Result<B, E>, B: AsRef<[u8]>, E: Debug + Send + Sync + 'static>( getter: F, ) -> Result<Self>
pub fn timestamp(&self) -> Result<String>
pub fn version(&self) -> Result<u32>
pub fn has_sources(&self) -> Result<bool>
pub fn nodes(&self) -> Result<Vec<AnyNode>>
pub fn located_nodes(&self) -> Result<Vec<AnyLocatedNode>>
pub fn nodes_of_type<T: Node + From<ID> + FromSql>(&self) -> Result<Vec<T>>
pub fn get_node(&self, id: ID) -> Result<Option<AnyNode>>
pub fn get_located_node(&self, id: ID) -> Result<Option<AnyLocatedNode>>
Auto Trait Implementations§
impl !Freeze for GD
impl !RefUnwindSafe for GD
impl Send for GD
impl !Sync for GD
impl Unpin for GD
impl UnsafeUnpin for GD
impl !UnwindSafe for GD
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