#[non_exhaustive]pub struct Controller {
pub cpus: u32,
pub memory_mb: u32,
pub disk_gb: Option<u32>,
}Expand description
The controller VM, which runs the environment’s playbooks and Ansible checks: its size.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cpus: u32CPUs: Controller::CPUS unless the spec says.
memory_mb: u32Memory in MB: Controller::MEMORY_MB unless the spec says.
disk_gb: Option<u32>Disk in GB, when the spec sets one (else its image’s own).
Implementations§
Source§impl Controller
impl Controller
Trait Implementations§
Source§impl Clone for Controller
impl Clone for Controller
impl Copy for Controller
Source§impl Debug for Controller
impl Debug for Controller
impl Eq for Controller
Source§impl Hash for Controller
impl Hash for Controller
Source§impl PartialEq for Controller
impl PartialEq for Controller
impl StructuralPartialEq for Controller
Auto Trait Implementations§
impl Freeze for Controller
impl RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl UnsafeUnpin for Controller
impl UnwindSafe for Controller
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.