Struct datacake_node::NodeSelectorHandle
source · pub struct NodeSelectorHandle { /* private fields */ }Expand description
A handle to the node selector actor responsible for working out what replicas should be prioritized when sending events based on a given consistency level.
Implementations§
source§impl NodeSelectorHandle
impl NodeSelectorHandle
sourcepub async fn get_nodes(
&self,
consistency: Consistency
) -> Result<Vec<SocketAddr>, ConsistencyError>
pub async fn get_nodes(
&self,
consistency: Consistency
) -> Result<Vec<SocketAddr>, ConsistencyError>
Gets a set of nodes based on a given consistency level.
If the consistency level cannot be met with the given data centers a ConsistencyError is returned.
Trait Implementations§
source§impl Clone for NodeSelectorHandle
impl Clone for NodeSelectorHandle
source§fn clone(&self) -> NodeSelectorHandle
fn clone(&self) -> NodeSelectorHandle
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 NodeSelectorHandle
impl Send for NodeSelectorHandle
impl Sync for NodeSelectorHandle
impl Unpin for NodeSelectorHandle
impl UnwindSafe for NodeSelectorHandle
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.