pub struct AutoScalingDiscovery { /* private fields */ }Expand description
Discovers peer nodes by listing instances in an EC2 Auto Scaling Group.
Filters for InService + healthy instances and returns their private
(or public) IP addresses with the configured port.
Implementations§
Source§impl AutoScalingDiscovery
impl AutoScalingDiscovery
Sourcepub fn builder() -> AsgDiscoveryBuilder
pub fn builder() -> AsgDiscoveryBuilder
Returns a new builder with default configuration.
Sourcepub fn config(&self) -> &AsgDiscoveryConfig
pub fn config(&self) -> &AsgDiscoveryConfig
Returns a reference to the current configuration.
Sourcepub async fn discover_async(&self) -> Result<Vec<String>, AwsDiscoveryError>
pub async fn discover_async(&self) -> Result<Vec<String>, AwsDiscoveryError>
Asynchronously discover peer addresses from the Auto Scaling Group.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AutoScalingDiscovery
impl RefUnwindSafe for AutoScalingDiscovery
impl Send for AutoScalingDiscovery
impl Sync for AutoScalingDiscovery
impl Unpin for AutoScalingDiscovery
impl UnsafeUnpin for AutoScalingDiscovery
impl UnwindSafe for AutoScalingDiscovery
Blanket Implementations§
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.