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§
source§impl AsMut<PConn> for PConnGuard
impl AsMut<PConn> for PConnGuard
source§impl AsP2pAgentStoreConExt for PConnGuard
impl AsP2pAgentStoreConExt for PConnGuard
source§fn 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
source§fn p2p_remove_agent(
&mut self,
agent: &KitsuneAgent
) -> Result<bool, DatabaseError>
fn p2p_remove_agent( &mut self, agent: &KitsuneAgent ) -> Result<bool, DatabaseError>
Remove an agent from the p2p store
source§fn 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
source§fn 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
source§fn 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
source§fn 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
source§impl 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>
source§impl AsRef<PConn> for PConnGuard
impl AsRef<PConn> for PConnGuard
source§impl Borrow<PConn> for PConnGuard
impl Borrow<PConn> for PConnGuard
source§impl BorrowMut<PConn> for PConnGuard
impl BorrowMut<PConn> for PConnGuard
source§fn borrow_mut(&mut self) -> &mut PConn
fn borrow_mut(&mut self) -> &mut PConn
Mutably borrows from an owned value. Read more
source§impl Deref for PConnGuard
impl Deref for PConnGuard
source§impl DerefMut for PConnGuard
impl DerefMut for PConnGuard
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
§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.
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
§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
§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> ⓘ
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§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 more§fn 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.