Struct holochain_state::prelude::PConnGuard
source · [−]pub struct PConnGuard(pub PConn, _);
Tuple Fields
0: PConn
Methods from Deref<Target = PConn>
pub fn with_reader_test<R, F>(&'e mut self, f: F) -> R where
F: 'e + FnOnce(Transaction<'_>) -> R,
Trait Implementations
sourceimpl AsMut<PConn> for PConnGuard
impl AsMut<PConn> for PConnGuard
sourceimpl AsP2pAgentStoreConExt for PConnGuard
impl AsP2pAgentStoreConExt for PConnGuard
sourcepub fn p2p_get_agent(
&mut self,
agent: &KitsuneAgent
) -> Result<Option<AgentInfoSigned>, DatabaseError>
pub fn p2p_get_agent(
&mut self,
agent: &KitsuneAgent
) -> Result<Option<AgentInfoSigned>, DatabaseError>
Get an AgentInfoSigned record from the p2p_store
sourcepub fn p2p_list_agents(
&mut self
) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>
pub fn p2p_list_agents(
&mut self
) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>
List all AgentInfoSigned records within a space in the p2p_agent_store
sourcepub fn p2p_gossip_query_agents(
&mut self,
since_ms: u64,
until_ms: u64,
arcset: DhtArcSet
) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>
pub fn p2p_gossip_query_agents(
&mut self,
since_ms: u64,
until_ms: u64,
arcset: DhtArcSet
) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>
Query agent list for gossip
sourcepub fn p2p_query_near_basis(
&mut self,
basis: u32,
limit: u32
) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>
pub fn p2p_query_near_basis(
&mut self,
basis: u32,
limit: u32
) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>
Query agents sorted by nearness to basis loc
sourcepub fn p2p_extrapolated_coverage(
&mut self,
dht_arc_set: DhtArcSet
) -> Result<Vec<f64, Global>, DatabaseError>
pub fn p2p_extrapolated_coverage(
&mut self,
dht_arc_set: DhtArcSet
) -> Result<Vec<f64, Global>, DatabaseError>
Extrapolate coverage from agents within our own storage arc
sourceimpl AsP2pMetricStoreConExt for PConnGuard
impl AsP2pMetricStoreConExt for PConnGuard
pub fn p2p_log_metrics(
&mut self,
metrics: Vec<MetricRecord, Global>
) -> Result<(), DatabaseError>
pub fn p2p_prune_metrics(&mut self) -> Result<(), DatabaseError>
sourceimpl Borrow<PConn> for PConnGuard
impl Borrow<PConn> for PConnGuard
sourceimpl BorrowMut<PConn> for PConnGuard
impl BorrowMut<PConn> for PConnGuard
sourcepub fn borrow_mut(&mut self) -> &mut PConn
pub fn borrow_mut(&mut self) -> &mut PConn
Mutably borrows from an owned value. Read more
sourceimpl Deref for PConnGuard
impl Deref for PConnGuard
sourceimpl DerefMut for PConnGuard
impl DerefMut for PConnGuard
sourcepub fn deref_mut(&mut self) -> &mut <PConnGuard as Deref>::Target
pub fn deref_mut(&mut self) -> &mut <PConnGuard as Deref>::Target
Mutably dereferences the value.
Auto Trait Implementations
impl !RefUnwindSafe for PConnGuard
impl Send for PConnGuard
impl !Sync for PConnGuard
impl Unpin for PConnGuard
impl !UnwindSafe for PConnGuard
Blanket Implementations
impl<T> Any for T where
T: Any + ?Sized,
impl<T> Any for T where
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
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>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more