Struct holochain_sqlite::conn::PConn [−][src]
pub struct PConn { /* fields omitted */ }
Expand description
Singleton Connection.
Trait Implementations
Performs the conversion.
Get an AgentInfoSigned record from the p2p_store
List all AgentInfoSigned records within a space in the p2p_agent_store
fn p2p_gossip_query_agents(
&mut self,
since_ms: u64,
until_ms: u64,
arcset: DhtArcSet
) -> DatabaseResult<Vec<AgentInfoSigned>>
fn p2p_gossip_query_agents(
&mut self,
since_ms: u64,
until_ms: u64,
arcset: DhtArcSet
) -> DatabaseResult<Vec<AgentInfoSigned>>
Query agent list for gossip
fn p2p_query_near_basis(
&mut self,
basis: u32,
limit: u32
) -> DatabaseResult<Vec<AgentInfoSigned>>
fn p2p_query_near_basis(
&mut self,
basis: u32,
limit: u32
) -> DatabaseResult<Vec<AgentInfoSigned>>
Query agents sorted by nearness to basis loc
Performs the conversion.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
type Target = PConnInner
type Target = PConnInner
The resulting type after dereferencing.
fn with_reader<E, R, F>(&'e mut self, f: F) -> Result<R, E> where
E: From<DatabaseError>,
F: 'e + FnOnce(Transaction<'_>) -> Result<R, E>,
fn with_reader<E, R, F>(&'e mut self, f: F) -> Result<R, E> where
E: From<DatabaseError>,
F: 'e + FnOnce(Transaction<'_>) -> Result<R, E>,
Run a closure, passing in a new read-only transaction
Same as with_reader, but with no Results: everything gets unwrapped
fn with_commit_sync<E, R, F>(&'e mut self, f: F) -> Result<R, E> where
E: From<DatabaseError>,
F: 'e + FnOnce(&mut Transaction<'_>) -> Result<R, E>,
fn with_commit_sync<E, R, F>(&'e mut self, f: F) -> Result<R, E> where
E: From<DatabaseError>,
F: 'e + FnOnce(&mut Transaction<'_>) -> Result<R, E>,
Run a closure, passing in a mutable reference to a read-write transaction, and commit the transaction after the closure has run. If there is a SQLite error, recover from it and re-run the closure. Read more
fn with_commit_test<R, F>(&'e mut self, f: F) -> Result<R, DatabaseError> where
F: 'e + FnOnce(&mut Transaction<'_>) -> R,
Auto Trait Implementations
impl !RefUnwindSafe for PConn
impl !UnwindSafe for PConn
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more