Struct holochain::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) -> Rwhere
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 Twhere
T: Any + ?Sized,
impl<T> Any for Twhere
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
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>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;