Struct sgx_isa::Targetinfo
source · #[repr(C, align(512))]pub struct Targetinfo {
pub measurement: [u8; 32],
pub attributes: Attributes,
pub _reserved1: [u8; 4],
pub miscselect: Miscselect,
pub _reserved2: [u8; 456],
}
Fields§
§measurement: [u8; 32]
§attributes: Attributes
§_reserved1: [u8; 4]
§miscselect: Miscselect
§_reserved2: [u8; 456]
Implementations§
source§impl Targetinfo
impl Targetinfo
sourcepub fn try_copy_from(src: &[u8]) -> Option<Self>
pub fn try_copy_from(src: &[u8]) -> Option<Self>
If src
has the correct length for this type, returns Some<T>
copied from src
, else returns None
.
source§impl Targetinfo
impl Targetinfo
pub const UNPADDED_SIZE: usize = 512usize
Trait Implementations§
source§impl AsRef<[u8]> for Targetinfo
impl AsRef<[u8]> for Targetinfo
source§impl Clone for Targetinfo
impl Clone for Targetinfo
source§fn clone(&self) -> Targetinfo
fn clone(&self) -> Targetinfo
Returns a copy 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 moresource§impl Debug for Targetinfo
impl Debug for Targetinfo
source§impl Default for Targetinfo
impl Default for Targetinfo
source§fn default() -> Targetinfo
fn default() -> Targetinfo
Returns the “default value” for a type. Read more
source§impl From<Report> for Targetinfo
impl From<Report> for Targetinfo
source§fn from(r: Report) -> Targetinfo
fn from(r: Report) -> Targetinfo
Converts to this type from the input type.
source§impl PartialEq for Targetinfo
impl PartialEq for Targetinfo
source§fn eq(&self, other: &Targetinfo) -> bool
fn eq(&self, other: &Targetinfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Targetinfo
Auto Trait Implementations§
impl Freeze for Targetinfo
impl RefUnwindSafe for Targetinfo
impl Send for Targetinfo
impl Sync for Targetinfo
impl Unpin for Targetinfo
impl UnwindSafe for Targetinfo
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