Enum apollo_client::conf::meta::IpValue
source · pub enum IpValue {
HostName,
HostIp,
HostCidr(IpCidr),
Custom(String),
}
Available on crate feature
conf
only.Expand description
Apollo config api ip
param value.
Variants§
HostName
Available on crate feature
host-name
only.Get the hostname of the machine.
HostIp
Available on crate feature
host-ip
only.Get the first ip of the machine generally.
HostCidr(IpCidr)
Available on crate feature
host-ip
only.Get the first ip of the machine match the cidr, such as ‘10.2.0.0/16’.
Custom(String)
Specify your own IP address or other text.
Trait Implementations§
source§impl PartialEq<IpValue> for IpValue
impl PartialEq<IpValue> for IpValue
impl StructuralPartialEq for IpValue
Auto Trait Implementations§
impl RefUnwindSafe for IpValue
impl Send for IpValue
impl Sync for IpValue
impl Unpin for IpValue
impl UnwindSafe for IpValue
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