[][src]Struct openstack::network::FloatingIp

pub struct FloatingIp { /* fields omitted */ }

Structure representing a single floating IP.

Implementations

impl FloatingIp[src]

pub fn created_at(&self) -> Option<DateTime<FixedOffset>>[src]

Creation data and time (if available).

pub fn description(&self) -> &Option<String>[src]

Floating IP description.

pub fn set_description<S: Into<String>>(&mut self, value: S)[src]

Update the description.

pub fn with_description<S: Into<String>>(self, value: S) -> Self[src]

Update the description.

pub fn dns_domain(&self) -> &Option<String>[src]

DNS domain for the floating IP (if available).

pub fn dns_name(&self) -> &Option<String>[src]

DNS domain for the floating IP (if available).

pub fn fixed_ip_address(&self) -> Option<IpAddr>[src]

IP address of the port associated with the IP (if any).

pub fn set_fixed_ip_address(&mut self, value: IpAddr)[src]

Update which fixed IP address is associated with the floating IP.

pub fn with_fixed_ip_address(self, value: IpAddr) -> Self[src]

Update which fixed IP address is associated with the floating IP.

pub fn floating_ip_address(&self) -> IpAddr[src]

Floating IP address

pub fn floating_network_id(&self) -> &String[src]

ID of the network this floating IP belongs to.

pub fn floating_network(&self) -> Result<Network>[src]

Get network this floating IP belongs to.

pub fn id(&self) -> &String[src]

Unique ID.

pub fn is_associated(&self) -> bool[src]

Whether the floating IP is associated.

pub fn port_forwardings(&self) -> &Vec<PortForwarding>[src]

List of port forwardings (if any).

pub fn port_id(&self) -> &Option<String>[src]

ID of the port this IP is attached to (if any).

pub fn router_id(&self) -> &Option<String>[src]

ID of the router of this floating IP.

pub fn port(&self) -> Result<Port>[src]

Fetch the port this IP is associated with.

Fails with ResourceNotFound if the floating IP is not associated.

pub fn status(&self) -> FloatingIpStatus[src]

Status of the floating IP.

pub fn updated_at(&self) -> Option<DateTime<FixedOffset>>[src]

Last update data and time (if available).

pub fn associate<P>(
    &mut self,
    port: P,
    fixed_ip_address: Option<IpAddr>
) -> Result<()> where
    P: Into<PortRef>, 
[src]

Associate this floating IP with a port.

Optionally provide a fixed IP address to associate with, in case the port has several fixed IP addresses.

Warning

Any changes to fixed_ip_address are reset on this call.

pub fn dissociate(&mut self) -> Result<()>[src]

Dissociate this floating IP from a port.

Warning

Any changes to fixed_ip_address are reset on this call.

pub fn delete(self) -> Result<DeletionWaiter<FloatingIp>>[src]

Delete the floating IP.

pub fn save(&mut self) -> Result<()>[src]

Save the changes to the floating IP.

Trait Implementations

impl Clone for FloatingIp[src]

impl Debug for FloatingIp[src]

impl Refresh for FloatingIp[src]

fn refresh(&mut self) -> Result<()>[src]

Refresh the floating_ip.

Auto Trait Implementations

impl !RefUnwindSafe for FloatingIp

impl !Send for FloatingIp

impl !Sync for FloatingIp

impl Unpin for FloatingIp

impl !UnwindSafe for FloatingIp

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.