pub struct MemberBuilder<'a> { /* private fields */ }Expand description
Builder for Member.
Implementations§
Source§impl<'a> MemberBuilder<'a>
impl<'a> MemberBuilder<'a>
Sourcepub fn admin_state_up<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn admin_state_up<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
The administrative state of the resource, which is up (true) or down
(false). Default is true.
Sourcepub fn backup<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn backup<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Is the member a backup? Backup members only receive traffic when all non-backup members are down.
New in version 2.1
Sourcepub fn monitor_address<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn monitor_address<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
An alternate IP address used for health monitoring a backend member.
Default is null which monitors the member address.
Sourcepub fn monitor_port<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
pub fn monitor_port<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
An alternate protocol port used for health monitoring a backend member.
Default is null which monitors the member protocol_port.
Sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Human-readable name of the resource.
A list of simple strings assigned to the resource.
New in version 2.5
Sourcepub fn weight<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
pub fn weight<VALUE: Into<i32>>(&mut self, value: VALUE) -> &mut Self
The weight of a member determines the portion of requests or
connections it services compared to the other members of the pool. For
example, a member with a weight of 10 receives five times as many
requests as a member with a weight of 2. A value of 0 means the member
does not receive new connections but continues to service existing
connections. A valid value is from 0 to 256. Default is 1.
Trait Implementations§
Source§impl<'a> Clone for MemberBuilder<'a>
impl<'a> Clone for MemberBuilder<'a>
Source§fn clone(&self) -> MemberBuilder<'a>
fn clone(&self) -> MemberBuilder<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for MemberBuilder<'a>
impl<'a> RefUnwindSafe for MemberBuilder<'a>
impl<'a> Send for MemberBuilder<'a>
impl<'a> Sync for MemberBuilder<'a>
impl<'a> Unpin for MemberBuilder<'a>
impl<'a> UnwindSafe for MemberBuilder<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more