[][src]Struct openstack::network::Port

pub struct Port { /* fields omitted */ }

Structure representing a port - a virtual NIC.

Implementations

impl Port[src]

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

The administrative state of the port.

pub fn set_admin_state_up(&mut self, value: bool)[src]

Update the administrative state.

pub fn with_admin_state_up(self, value: bool) -> Self[src]

Update the administrative state.

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

Whether the device_owner is a Compute server.

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

Creation data and time (if available).

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

Port 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 device_id(&self) -> &Option<String>[src]

ID of object (server, router, etc) to which this port is attached.

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

Update the device ID.

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

Update the device ID.

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

Type of object to which this port is attached.

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

Update the device owner.

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

Update the device owner.

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

DNS domain for the port (if available).

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

Update the DNS domain.

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

Update the DNS domain.

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

DNS name for the port (if available).

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

Update the DNS name.

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

Update the DNS name.

pub fn extra_dhcp_opts(&self) -> &Vec<PortExtraDhcpOption>[src]

DHCP options configured for this port.

pub fn extra_dhcp_opts_mut(&mut self) -> &mut Vec<PortExtraDhcpOption>[src]

Mutable access to DHCP options.

pub fn set_extra_dhcp_opts(&mut self, value: Vec<PortExtraDhcpOption>)[src]

Update the DHCP options.

pub fn with_extra_dhcp_opts(self, value: Vec<PortExtraDhcpOption>) -> Self[src]

Update the DHCP options.

pub fn fixed_ips(&self) -> &Vec<PortIpAddress>[src]

Fixed IP addresses of the port.

pub fn mac_address(&self) -> MacAddress[src]

MAC address of the port.

pub fn set_mac_address(&mut self, value: MacAddress)[src]

Update the MAC address (admin-only).

pub fn with_mac_address(self, value: MacAddress) -> Self[src]

Update the MAC address (admin-only).

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

Unique ID.

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

Port name.

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

Update the port name.

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

Update the port name.

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

Get network associated with this port.

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

ID of the network this port belongs to.

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

Port status.

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

Last update data and time (if available).

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

Delete the port.

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

Whether the port is modified.

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

Save the changes to the port.

Trait Implementations

impl Clone for Port[src]

impl Debug for Port[src]

impl From<Port> for PortRef[src]

impl Refresh for Port[src]

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

Refresh the port.

Auto Trait Implementations

impl !RefUnwindSafe for Port

impl !Send for Port

impl !Sync for Port

impl Unpin for Port

impl !UnwindSafe for Port

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.