#[repr(u8)]pub enum DestroyError {
InvalidInstance = 1,
}Expand description
Errors that can be emitted when destroying a virtualization instance.
Variants§
InvalidInstance = 1
The supplied instance_id was invalid or the instance was destroyed.
Trait Implementations§
Source§impl Debug for DestroyError
impl Debug for DestroyError
Source§impl Decode for DestroyError
impl Decode for DestroyError
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for DestroyError
impl Encode for DestroyError
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl From<DestroyError> for u8
impl From<DestroyError> for u8
Source§fn from(enum_value: DestroyError) -> Self
fn from(enum_value: DestroyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DestroyError
impl PartialEq for DestroyError
Source§impl TryFrom<u8> for DestroyError
impl TryFrom<u8> for DestroyError
Source§type Error = TryFromPrimitiveError<DestroyError>
type Error = TryFromPrimitiveError<DestroyError>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DestroyError
impl TryFromPrimitive for DestroyError
const NAME: &'static str = "DestroyError"
type Primitive = u8
type Error = TryFromPrimitiveError<DestroyError>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl EncodeLike for DestroyError
impl Eq for DestroyError
impl StructuralPartialEq for DestroyError
Auto Trait Implementations§
impl Freeze for DestroyError
impl RefUnwindSafe for DestroyError
impl Send for DestroyError
impl Sync for DestroyError
impl Unpin for DestroyError
impl UnsafeUnpin for DestroyError
impl UnwindSafe for DestroyError
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