Struct datacake_node::DatacakeHandle
source · pub struct DatacakeHandle { /* private fields */ }Implementations§
source§impl DatacakeHandle
impl DatacakeHandle
sourcepub fn statistics(&self) -> ClusterStatistics
pub fn statistics(&self) -> ClusterStatistics
Gets the live cluster statistics.
sourcepub fn network(&self) -> &RpcNetwork
pub fn network(&self) -> &RpcNetwork
Get access to the current RPC network.
sourcepub fn membership_changes(&self) -> WatchStream<MembershipChange>
pub fn membership_changes(&self) -> WatchStream<MembershipChange>
Get a stream of membership changes.
sourcepub fn me(&self) -> &ClusterMember
pub fn me(&self) -> &ClusterMember
Return the cluster member of the node itself.
sourcepub async fn select_nodes(
&self,
consistency: Consistency
) -> Result<Vec<SocketAddr>, ConsistencyError>
pub async fn select_nodes(
&self,
consistency: Consistency
) -> Result<Vec<SocketAddr>, ConsistencyError>
Selects a set of nodes using a provided consistency level.
Trait Implementations§
source§impl Clone for DatacakeHandle
impl Clone for DatacakeHandle
source§fn clone(&self) -> DatacakeHandle
fn clone(&self) -> DatacakeHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for DatacakeHandle
impl Send for DatacakeHandle
impl Sync for DatacakeHandle
impl Unpin for DatacakeHandle
impl !UnwindSafe for DatacakeHandle
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§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<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,
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> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: *const T) -> Layout
fn layout_raw(_: *const T) -> Layout
Gets the layout of the type.