[−][src]Struct openstack::compute::Server
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]
&'server mut self,
reboot_type: RebootType
) -> Result<ServerStatusWaiter<'server>>
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]
impl Waiter<Server, Error> for ServerCreationWaiter[src]
fn default_wait_timeout(&self) -> Option<Duration>[src]
fn default_delay(&self) -> Duration[src]
fn timeout_error(&self) -> Error[src]
fn poll(&mut self) -> Result<Option<Server>>[src]
fn wait(self) -> Result<T, E>[src]
fn wait_for(self, duration: Duration) -> Result<T, E>[src]
fn wait_for_with_delay(
self,
duration: Duration,
delay: Duration
) -> Result<T, E>[src]
self,
duration: Duration,
delay: Duration
) -> Result<T, E>
fn wait_forever(self) -> Result<T, E>[src]
fn wait_forever_with_delay(self, delay: Duration) -> Result<T, E>[src]
impl<'server> WaiterCurrentState<Server> for ServerStatusWaiter<'server>[src]
fn waiter_current_state(&self) -> &Server[src]
impl WaiterCurrentState<Server> for ServerCreationWaiter[src]
fn waiter_current_state(&self) -> &Server[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,