pub enum PetriVmgsResource {
Disk(PetriVmgsDisk),
ReprovisionOnFailure(PetriVmgsDisk),
Reprovision(PetriVmgsDisk),
Ephemeral,
}Expand description
Petri VM guest state resource
Variants§
Disk(PetriVmgsDisk)
Use disk to store guest state
ReprovisionOnFailure(PetriVmgsDisk)
Use disk to store guest state, reformatting if corrupted.
Reprovision(PetriVmgsDisk)
Format and use disk to store guest state
Ephemeral
Store guest state in memory
Implementations§
Source§impl PetriVmgsResource
impl PetriVmgsResource
Sourcepub fn disk(&self) -> Option<&PetriVmgsDisk>
pub fn disk(&self) -> Option<&PetriVmgsDisk>
get the inner vmgs disk if one exists
Trait Implementations§
Source§impl Clone for PetriVmgsResource
impl Clone for PetriVmgsResource
Source§fn clone(&self) -> PetriVmgsResource
fn clone(&self) -> PetriVmgsResource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PetriVmgsResource
impl RefUnwindSafe for PetriVmgsResource
impl Send for PetriVmgsResource
impl Sync for PetriVmgsResource
impl Unpin for PetriVmgsResource
impl UnwindSafe for PetriVmgsResource
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