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
sourcefn p2p_get_agent(
&mut self,
agent: &KitsuneAgent
) -> Result<Option<AgentInfoSigned>, DatabaseError>
fn p2p_get_agent(
&mut self,
agent: &KitsuneAgent
) -> Result<Option<AgentInfoSigned>, DatabaseError>
Get an AgentInfoSigned record from the p2p_store
sourcefn p2p_list_agents(
&mut self
) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>
fn p2p_list_agents(
&mut self
) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>
List all AgentInfoSigned records within a space in the p2p_agent_store
sourcefn p2p_gossip_query_agents(
&mut self,
since_ms: u64,
until_ms: u64,
arcset: DhtArcSet
) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>
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
sourcefn p2p_query_near_basis(
&mut self,
basis: u32,
limit: u32
) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>
fn p2p_query_near_basis(
&mut self,
basis: u32,
limit: u32
) -> Result<Vec<AgentInfoSigned, Global>, DatabaseError>
Query agents sorted by nearness to basis loc
sourcefn p2p_extrapolated_coverage(
&mut self,
dht_arc_set: DhtArcSet
) -> Result<Vec<f64, Global>, DatabaseError>
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
fn p2p_log_metrics(
&mut self,
metrics: Vec<MetricRecord, Global>
) -> Result<(), DatabaseError>
fn p2p_prune_metrics(&mut self) -> Result<(), DatabaseError>
sourceimpl AsRef<PConn> for PConnGuard
impl AsRef<PConn> for PConnGuard
sourceimpl Borrow<PConn> for PConnGuard
impl Borrow<PConn> for PConnGuard
sourceimpl BorrowMut<PConn> for PConnGuard
impl BorrowMut<PConn> for PConnGuard
sourcefn borrow_mut(&mut self) -> &mut PConn
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
sourcefn deref_mut(&mut self) -> &mut <PConnGuard as Deref>::Target
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
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
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>,
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