[][src]Struct openstack::compute::Server

pub struct Server { /* fields omitted */ }

Structure representing a single server.

Implementations

impl Server[src]

pub fn access_ipv4(&self) -> Option<Ipv4Addr>[src]

IPv4 address to access the server (if provided).

pub fn access_ipv6(&self) -> Option<Ipv6Addr>[src]

IPv6 address to access the server (if provided).

pub fn addresses(&self) -> &HashMap<String, Vec<ServerAddress>>[src]

Addresses (floating and fixed) associated with the server.

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

Availability zone.

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

Creation date and time.

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

Server description.

pub fn flavor(&self) -> &ServerFlavor[src]

Flavor information used to create this server.

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

Find a floating IP, if it exists.

If multiple floating IPs exist, the first is returned.

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

Whether the server was created with a config drive.

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

Whether the server has an image.

May return false if the server was created from a volume.

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

Server unique ID.

pub fn image(&self) -> Result<Image>[src]

Fetch the associated image.

Fails with ResourceNotFound if the server does not have an image.

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

Get a reference to the image.

May be None if the server was created from a volume.

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

Instance name.

pub fn key_pair(&self) -> Result<KeyPair>[src]

Fetch the key pair used for the server.

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

Name of a key pair used with this server (if any).

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

Server name.

pub fn metadata(&self) -> &HashMap<String, String>[src]

Metadata associated with the server.

pub fn power_state(&self) -> ServerPowerState[src]

Server power state.

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

Server status.

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

Last update date and time.

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

Delete the server.

pub fn reboot<'server>(
    &'server mut self,
    reboot_type: RebootType
) -> Result<ServerStatusWaiter<'server>>
[src]

Reboot the server.

pub fn start<'server>(&'server mut self) -> Result<ServerStatusWaiter<'server>>[src]

Start the server, optionally wait for it to be active.

pub fn stop<'server>(&'server mut self) -> Result<ServerStatusWaiter<'server>>[src]

Stop the server, optionally wait for it to be powered off.

Trait Implementations

impl Clone for Server[src]

impl Debug for Server[src]

impl Refresh for Server[src]

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

Refresh the server.

impl Waiter<Server, Error> for ServerCreationWaiter[src]

impl<'server> WaiterCurrentState<Server> for ServerStatusWaiter<'server>[src]

impl WaiterCurrentState<Server> for ServerCreationWaiter[src]

Auto Trait Implementations

impl !RefUnwindSafe for Server

impl !Send for Server

impl !Sync for Server

impl Unpin for Server

impl !UnwindSafe for Server

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.