Struct openstack::compute::Server
[−]
[src]
pub struct Server<'session> { /* fields omitted */ }
Structure representing a single server.
Methods
impl<'session> Server<'session>
[src]
fn refresh(&mut self) -> Result<()>
[src]
Refresh the server.
fn access_ipv4(&self) -> &Option<Ipv4Addr>
[src]
Get a reference to IPv4 address.
If not None, this address should be used to access the server instead
of one from the addresses
method.
fn access_ipv6(&self) -> &Option<Ipv6Addr>
[src]
Get a reference to IPv6 address.
If not None, this address should be used to access the server instead
of one from the addresses
method.
fn addresses(&self) -> &HashMap<String, Vec<ServerAddress>>
[src]
Get a reference to associated addresses.
fn availability_zone(&self) -> &String
[src]
Get a reference to the availability zone.
fn created_at(&self) -> &DateTime<FixedOffset>
[src]
Get a reference to creation date and time.
fn id(&self) -> &String
[src]
Get a reference to server unique ID.
fn image_id(&self) -> Option<&String>
[src]
Get a reference to the image.
May be None if the server was created from a volume.
fn has_image(&self) -> bool
[src]
Whether the server has an image.
May return false
if the server was created from a volume.
fn name(&self) -> &String
[src]
Get a reference to server name.
fn power_state(&self) -> ServerPowerState
[src]
Get server power state.
fn status(&self) -> ServerStatus
[src]
Get server status.
fn updated_at(&self) -> &DateTime<FixedOffset>
[src]
Get a reference to last update date and time.
fn start(&'session mut self) -> Result<ServerStatusWaiter<'session>>
[src]
Start the server, optionally wait for it to be active.
fn stop(&'session mut self) -> Result<ServerStatusWaiter<'session>>
[src]
Stop the server, optionally wait for it to be powered off.
fn delete(self) -> Result<()>
[src]
Delete the server.
Trait Implementations
impl<'session> Clone for Server<'session>
[src]
fn clone(&self) -> Server<'session>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'session> Debug for Server<'session>
[src]
impl<'session> ResourceId for Server<'session>
[src]
fn resource_id(&self) -> String
[src]
Identifier of the current resource.
impl<'session> ListResources<'session> for Server<'session>
[src]
const DEFAULT_LIMIT: usize
DEFAULT_LIMIT: usize = 50
Default limit to use with this resource.
fn list_resources<Q: Serialize + Debug>(
session: &'session Session,
query: Q
) -> Result<Vec<Server<'session>>>
[src]
session: &'session Session,
query: Q
) -> Result<Vec<Server<'session>>>
List the resources from the session.