x86defs::tdx

Struct TdCallResultCode

Source
#[repr(transparent)]
pub struct TdCallResultCode(pub u32);
Expand description

Result code for tdcall to the TDX module, returned in RAX.

Tuple Fields§

§0: u32

Implementations§

Source§

impl TdCallResultCode

Source

pub const SUCCESS: TdCallResultCode = _

Source

pub const NON_RECOVERABLE_VCPU: TdCallResultCode = _

Source

pub const NON_RECOVERABLE_TD: TdCallResultCode = _

Source

pub const INTERRUPTED_RESUMABLE: TdCallResultCode = _

Source

pub const INTERRUPTED_RESTARTABLE: TdCallResultCode = _

Source

pub const NON_RECOVERABLE_TD_NON_ACCESSIBLE: TdCallResultCode = _

Source

pub const INVALID_RESUMPTION: TdCallResultCode = _

Source

pub const NON_RECOVERABLE_TD_WRONG_APIC_MODE: TdCallResultCode = _

Source

pub const CROSS_TD_FAULT: TdCallResultCode = _

Source

pub const CROSS_TD_TRAP: TdCallResultCode = _

Source

pub const NON_RECOVERABLE_TD_CORRUPTED_MD: TdCallResultCode = _

Source

pub const OPERAND_INVALID: TdCallResultCode = _

Source

pub const OPERAND_ADDR_RANGE_ERROR: TdCallResultCode = _

Source

pub const OPERAND_BUSY: TdCallResultCode = _

Source

pub const PREVIOUS_TLB_EPOCH_BUSY: TdCallResultCode = _

Source

pub const SYS_BUSY: TdCallResultCode = _

Source

pub const RND_NO_ENTROPY: TdCallResultCode = _

Source

pub const OPERAND_BUSY_HOST_PRIORITY: TdCallResultCode = _

Source

pub const HOST_PRIORITY_BUSY_TIMEOUT: TdCallResultCode = _

Source

pub const PAGE_METADATA_INCORRECT: TdCallResultCode = _

Source

pub const PAGE_ALREADY_FREE: TdCallResultCode = _

Source

pub const PAGE_NOT_OWNED_BY_TD: TdCallResultCode = _

Source

pub const PAGE_NOT_FREE: TdCallResultCode = _

Source

pub const TD_ASSOCIATED_PAGES_EXIST: TdCallResultCode = _

Source

pub const SYS_INIT_NOT_PENDING: TdCallResultCode = _

Source

pub const SYS_LP_INIT_NOT_DONE: TdCallResultCode = _

Source

pub const SYS_LP_INIT_DONE: TdCallResultCode = _

Source

pub const SYS_NOT_READY: TdCallResultCode = _

Source

pub const SYS_SHUTDOWN: TdCallResultCode = _

Source

pub const SYS_KEY_CONFIG_NOT_PENDING: TdCallResultCode = _

Source

pub const SYS_STATE_INCORRECT: TdCallResultCode = _

Source

pub const SYS_INVALID_HANDOFF: TdCallResultCode = _

Source

pub const SYS_INCOMPATIBLE_SIGSTRUCT: TdCallResultCode = _

Source

pub const SYS_LP_INIT_NOT_PENDING: TdCallResultCode = _

Source

pub const SYS_CONFIG_NOT_PENDING: TdCallResultCode = _

Source

pub const INCOMPATIBLE_SEAM_CAPABILITIES: TdCallResultCode = _

Source

pub const TD_FATAL: TdCallResultCode = _

Source

pub const TD_NON_DEBUG: TdCallResultCode = _

Source

pub const TDCS_NOT_ALLOCATED: TdCallResultCode = _

Source

pub const LIFECYCLE_STATE_INCORRECT: TdCallResultCode = _

Source

pub const OP_STATE_INCORRECT: TdCallResultCode = _

Source

pub const NO_VCPUS: TdCallResultCode = _

Source

pub const TDCX_NUM_INCORRECT: TdCallResultCode = _

Source

pub const VCPU_STATE_INCORRECT: TdCallResultCode = _

Source

pub const VCPU_ASSOCIATED: TdCallResultCode = _

Source

pub const VCPU_NOT_ASSOCIATED: TdCallResultCode = _

Source

pub const NO_VALID_VE_INFO: TdCallResultCode = _

Source

pub const MAX_VCPUS_EXCEEDED: TdCallResultCode = _

Source

pub const TSC_ROLLBACK: TdCallResultCode = _

Source

pub const TD_VMCS_FIELD_NOT_INITIALIZED: TdCallResultCode = _

Source

pub const MCS_FIELD_ERROR: TdCallResultCode = _

Source

pub const KEY_GENERATION_FAILED: TdCallResultCode = _

Source

pub const TD_KEYS_NOT_CONFIGURED: TdCallResultCode = _

Source

pub const KEY_STATE_INCORRECT: TdCallResultCode = _

Source

pub const KEY_CONFIGURED: TdCallResultCode = _

Source

pub const WBCACHE_NOT_COMPLETE: TdCallResultCode = _

Source

pub const HKID_NOT_FREE: TdCallResultCode = _

Source

pub const NO_HKID_READY_TO_WBCACHE: TdCallResultCode = _

Source

pub const WBCACHE_RESUME_ERROR: TdCallResultCode = _

Source

pub const FLUSHVP_NOT_DONE: TdCallResultCode = _

Source

pub const NUM_ACTIVATED_HKIDS_NOT_SUPPORTED: TdCallResultCode = _

Source

pub const INCORRECT_CPUID_VALUE: TdCallResultCode = _

Source

pub const LIMIT_CPUID_MAXVAL_SET: TdCallResultCode = _

Source

pub const INCONSISTENT_CPUID_FIELD: TdCallResultCode = _

Source

pub const CPUID_MAX_SUBLEAVES_UNRECOGNIZED: TdCallResultCode = _

Source

pub const CPUID_LEAF_1F_FORMAT_UNRECOGNIZED: TdCallResultCode = _

Source

pub const INVALID_WBINVD_SCOPE: TdCallResultCode = _

Source

pub const INVALID_PKG_ID: TdCallResultCode = _

Source

pub const ENABLE_MONITOR_FSM_NOT_SET: TdCallResultCode = _

Source

pub const CPUID_LEAF_NOT_SUPPORTED: TdCallResultCode = _

Source

pub const SMRR_NOT_LOCKED: TdCallResultCode = _

Source

pub const INVALID_SMRR_CONFIGURATION: TdCallResultCode = _

Source

pub const SMRR_OVERLAPS_CMR: TdCallResultCode = _

Source

pub const SMRR_LOCK_NOT_SUPPORTED: TdCallResultCode = _

Source

pub const SMRR_NOT_SUPPORTED: TdCallResultCode = _

Source

pub const INCONSISTENT_MSR: TdCallResultCode = _

Source

pub const INCORRECT_MSR_VALUE: TdCallResultCode = _

Source

pub const SEAMREPORT_NOT_AVAILABLE: TdCallResultCode = _

Source

pub const SEAMDB_GETREF_NOT_AVAILABLE: TdCallResultCode = _

Source

pub const SEAMDB_REPORT_NOT_AVAILABLE: TdCallResultCode = _

Source

pub const SEAMVERIFYREPORT_NOT_AVAILABLE: TdCallResultCode = _

Source

pub const INVALID_TDMR: TdCallResultCode = _

Source

pub const NON_ORDERED_TDMR: TdCallResultCode = _

Source

pub const TDMR_OUTSIDE_CMRS: TdCallResultCode = _

Source

pub const TDMR_ALREADY_INITIALIZED: TdCallResultCode = _

Source

pub const INVALID_PAMT: TdCallResultCode = _

Source

pub const PAMT_OUTSIDE_CMRS: TdCallResultCode = _

Source

pub const PAMT_OVERLAP: TdCallResultCode = _

Source

pub const INVALID_RESERVED_IN_TDMR: TdCallResultCode = _

Source

pub const NON_ORDERED_RESERVED_IN_TDMR: TdCallResultCode = _

Source

pub const CMR_LIST_INVALID: TdCallResultCode = _

Source

pub const EPT_WALK_FAILED: TdCallResultCode = _

Source

pub const EPT_ENTRY_FREE: TdCallResultCode = _

Source

pub const EPT_ENTRY_NOT_FREE: TdCallResultCode = _

Source

pub const EPT_ENTRY_NOT_PRESENT: TdCallResultCode = _

Source

pub const EPT_ENTRY_NOT_LEAF: TdCallResultCode = _

Source

pub const EPT_ENTRY_LEAF: TdCallResultCode = _

Source

pub const GPA_RANGE_NOT_BLOCKED: TdCallResultCode = _

Source

pub const GPA_RANGE_ALREADY_BLOCKED: TdCallResultCode = _

Source

pub const TLB_TRACKING_NOT_DONE: TdCallResultCode = _

Source

pub const EPT_INVALID_PROMOTE_CONDITIONS: TdCallResultCode = _

Source

pub const PAGE_ALREADY_ACCEPTED: TdCallResultCode = _

Source

pub const PAGE_SIZE_MISMATCH: TdCallResultCode = _

Source

pub const GPA_RANGE_BLOCKED: TdCallResultCode = _

Source

pub const EPT_ENTRY_STATE_INCORRECT: TdCallResultCode = _

Source

pub const EPT_PAGE_NOT_FREE: TdCallResultCode = _

Source

pub const L2_SEPT_WALK_FAILED: TdCallResultCode = _

Source

pub const L2_SEPT_ENTRY_NOT_FREE: TdCallResultCode = _

Source

pub const PAGE_ATTR_INVALID: TdCallResultCode = _

Source

pub const L2_SEPT_PAGE_NOT_PROVIDED: TdCallResultCode = _

Source

pub const METADATA_FIELD_ID_INCORRECT: TdCallResultCode = _

Source

pub const METADATA_FIELD_NOT_WRITABLE: TdCallResultCode = _

Source

pub const METADATA_FIELD_NOT_READABLE: TdCallResultCode = _

Source

pub const METADATA_FIELD_VALUE_NOT_VALID: TdCallResultCode = _

Source

pub const METADATA_LIST_OVERFLOW: TdCallResultCode = _

Source

pub const INVALID_METADATA_LIST_HEADER: TdCallResultCode = _

Source

pub const REQUIRED_METADATA_FIELD_MISSING: TdCallResultCode = _

Source

pub const METADATA_ELEMENT_SIZE_INCORRECT: TdCallResultCode = _

Source

pub const METADATA_LAST_ELEMENT_INCORRECT: TdCallResultCode = _

Source

pub const METADATA_FIELD_CURRENTLY_NOT_WRITABLE: TdCallResultCode = _

Source

pub const METADATA_WR_MASK_NOT_VALID: TdCallResultCode = _

Source

pub const METADATA_FIRST_FIELD_ID_IN_CONTEXT: TdCallResultCode = _

Source

pub const METADATA_FIELD_SKIP: TdCallResultCode = _

Source

pub const SERVTD_ALREADY_BOUND_FOR_TYPE: TdCallResultCode = _

Source

pub const SERVTD_TYPE_MISMATCH: TdCallResultCode = _

Source

pub const SERVTD_ATTR_MISMATCH: TdCallResultCode = _

Source

pub const SERVTD_INFO_HASH_MISMATCH: TdCallResultCode = _

Source

pub const SERVTD_UUID_MISMATCH: TdCallResultCode = _

Source

pub const SERVTD_NOT_BOUND: TdCallResultCode = _

Source

pub const SERVTD_BOUND: TdCallResultCode = _

Source

pub const TARGET_UUID_MISMATCH: TdCallResultCode = _

Source

pub const TARGET_UUID_UPDATED: TdCallResultCode = _

Source

pub const INVALID_MBMD: TdCallResultCode = _

Source

pub const INCORRECT_MBMD_MAC: TdCallResultCode = _

Source

pub const NOT_WRITE_BLOCKED: TdCallResultCode = _

Source

pub const ALREADY_WRITE_BLOCKED: TdCallResultCode = _

Source

pub const NOT_EXPORTED: TdCallResultCode = _

Source

pub const MIGRATION_STREAM_STATE_INCORRECT: TdCallResultCode = _

Source

pub const MAX_MIGS_NUM_EXCEEDED: TdCallResultCode = _

Source

pub const EXPORTED_DIRTY_PAGES_REMAIN: TdCallResultCode = _

Source

pub const MIGRATION_DECRYPTION_KEY_NOT_SET: TdCallResultCode = _

Source

pub const TD_NOT_MIGRATABLE: TdCallResultCode = _

Source

pub const PREVIOUS_EXPORT_CLEANUP_INCOMPLETE: TdCallResultCode = _

Source

pub const NUM_MIGS_HIGHER_THAN_CREATED: TdCallResultCode = _

Source

pub const IMPORT_MISMATCH: TdCallResultCode = _

Source

pub const MIGRATION_EPOCH_OVERFLOW: TdCallResultCode = _

Source

pub const MAX_EXPORTS_EXCEEDED: TdCallResultCode = _

Source

pub const INVALID_PAGE_MAC: TdCallResultCode = _

Source

pub const MIGRATED_IN_CURRENT_EPOCH: TdCallResultCode = _

Source

pub const DISALLOWED_IMPORT_OVER_REMOVED: TdCallResultCode = _

Source

pub const SOME_VCPUS_NOT_MIGRATED: TdCallResultCode = _

Source

pub const ALL_VCPUS_IMPORTED: TdCallResultCode = _

Source

pub const MIN_MIGS_NOT_CREATED: TdCallResultCode = _

Source

pub const VCPU_ALREADY_EXPORTED: TdCallResultCode = _

Source

pub const INVALID_MIGRATION_DECRYPTION_KEY: TdCallResultCode = _

Source

pub const INVALID_CPUSVN: TdCallResultCode = _

Source

pub const INVALID_REPORTMACSTRUCT: TdCallResultCode = _

Source

pub const L2_EXIT_HOST_ROUTED_ASYNC: TdCallResultCode = _

Source

pub const L2_EXIT_HOST_ROUTED_TDVMCALL: TdCallResultCode = _

Source

pub const L2_EXIT_PENDING_INTERRUPT: TdCallResultCode = _

Source

pub const PENDING_INTERRUPT: TdCallResultCode = _

Source

pub const TD_EXIT_BEFORE_L2_ENTRY: TdCallResultCode = _

Source

pub const TD_EXIT_ON_L2_VM_EXIT: TdCallResultCode = _

Source

pub const TD_EXIT_ON_L2_TO_L1: TdCallResultCode = _

Source

pub const GLA_NOT_CANONICAL: TdCallResultCode = _

Trait Implementations§

Source§

impl Clone for TdCallResultCode

Source§

fn clone(&self) -> TdCallResultCode

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TdCallResultCode

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromBytes for TdCallResultCode
where u32: FromBytes,

§

fn ref_from_bytes( source: &[u8], ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout + Immutable,

Interprets the given source as a &Self. Read more
§

fn ref_from_prefix( source: &[u8], ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout + Immutable,

Interprets the prefix of the given source as a &Self without copying. Read more
§

fn ref_from_suffix( source: &[u8], ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: Immutable + KnownLayout,

Interprets the suffix of the given bytes as a &Self. Read more
§

fn mut_from_bytes( source: &mut [u8], ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the given source as a &mut Self. Read more
§

fn mut_from_prefix( source: &mut [u8], ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the prefix of the given source as a &mut Self without copying. Read more
§

fn mut_from_suffix( source: &mut [u8], ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the suffix of the given source as a &mut Self without copying. Read more
§

fn read_from_bytes(source: &[u8]) -> Result<Self, SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the given source. Read more
§

fn read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the prefix of the given source. Read more
§

fn read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the suffix of the given source. Read more
Source§

impl FromZeros for TdCallResultCode
where u32: FromZeros,

§

fn zero(&mut self)

Overwrites self with zeros. Read more
§

fn new_zeroed() -> Self
where Self: Sized,

Creates an instance of Self from zeroed bytes. Read more
§

fn new_box_zeroed() -> Result<Box<Self>, AllocError>
where Self: Sized,

Creates a Box<Self> from zeroed bytes. Read more
§

fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>
where Self: Sized,

Creates a Vec<Self> from zeroed bytes. Read more
§

fn extend_vec_zeroed( v: &mut Vec<Self>, additional: usize, ) -> Result<(), AllocError>
where Self: Sized,

Extends a Vec<Self> by pushing additional new items onto the end of the vector. The new items are initialized with zeros.
§

fn insert_vec_zeroed( v: &mut Vec<Self>, position: usize, additional: usize, ) -> Result<(), AllocError>
where Self: Sized,

Inserts additional new items into Vec<Self> at position. The new items are initialized with zeros. Read more
Source§

impl Hash for TdCallResultCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoBytes for TdCallResultCode
where u32: IntoBytes,

§

fn as_bytes(&self) -> &[u8]
where Self: Immutable,

Gets the bytes of this value. Read more
§

fn as_mut_bytes(&mut self) -> &mut [u8]
where Self: FromBytes,

Gets the bytes of this value mutably. Read more
§

fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to dst. Read more
§

fn write_to_prefix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the prefix of dst. Read more
§

fn write_to_suffix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the suffix of dst. Read more
Source§

impl KnownLayout for TdCallResultCode
where Self: Sized,

Source§

type PointerMetadata = ()

The type of metadata stored in a pointer to Self. Read more
Source§

impl Ord for TdCallResultCode

Source§

fn cmp(&self, other: &TdCallResultCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for TdCallResultCode

Source§

fn eq(&self, other: &TdCallResultCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for TdCallResultCode

Source§

fn partial_cmp(&self, other: &TdCallResultCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFromBytes for TdCallResultCode
where u32: TryFromBytes,

§

fn try_ref_from_bytes( source: &[u8], ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the given source as a &Self. Read more
§

fn try_ref_from_prefix( source: &[u8], ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the prefix of the given source as a &Self. Read more
§

fn try_ref_from_suffix( source: &[u8], ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the suffix of the given source as a &Self. Read more
§

fn try_mut_from_bytes( bytes: &mut [u8], ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout,

Attempts to interpret the given source as a &mut Self without copying. Read more
§

fn try_mut_from_prefix( source: &mut [u8], ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout,

Attempts to interpret the prefix of the given source as a &mut Self. Read more
§

fn try_mut_from_suffix( source: &mut [u8], ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout,

Attempts to interpret the suffix of the given source as a &mut Self. Read more
§

fn try_read_from_bytes( source: &[u8], ) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read the given source as a Self. Read more
§

fn try_read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the prefix of the given source. Read more
§

fn try_read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the suffix of the given source. Read more
Source§

impl Copy for TdCallResultCode

Source§

impl Eq for TdCallResultCode

Source§

impl Immutable for TdCallResultCode
where u32: Immutable,

Source§

impl StructuralPartialEq for TdCallResultCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.