pub struct TemplateCtrl(/* private fields */);Expand description
The container of vm templates, {Vm Template Name} => {Vm Template Object}
Implementations§
Source§impl TemplateCtrl
impl TemplateCtrl
Sourcepub fn reinit(&mut self, t: HashMap<String, VmTemplate>)
pub fn reinit(&mut self, t: HashMap<String, VmTemplate>)
Replace the whole data with a new one.
Sourcepub fn add(&mut self, t: HashMap<String, VmTemplate>)
pub fn add(&mut self, t: HashMap<String, VmTemplate>)
Add all given elements to current data.
Trait Implementations§
Source§impl Default for TemplateCtrl
impl Default for TemplateCtrl
Source§fn default() -> TemplateCtrl
fn default() -> TemplateCtrl
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TemplateCtrl
impl !RefUnwindSafe for TemplateCtrl
impl Send for TemplateCtrl
impl Sync for TemplateCtrl
impl Unpin for TemplateCtrl
impl !UnwindSafe for TemplateCtrl
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