pub struct TcbInfo { /* private fields */ }
Implementations§
Source§impl TcbInfo
impl TcbInfo
pub fn new( raw_tcb_info: String, signature: Vec<u8>, ca_chain: Vec<String>, ) -> Self
pub fn parse(body: &String, ca_chain: Vec<String>) -> Result<Self, Error>
pub fn create_filename( fmspc: &str, evaluation_data_number: Option<u64>, ) -> String
pub fn store(&self, output_dir: &str) -> Result<String, Error>
pub fn store_if_not_exist( &self, output_dir: &str, ) -> Result<Option<PathBuf>, Error>
pub fn restore( input_dir: &str, fmspc: &Fmspc, evaluation_data_number: Option<u64>, ) -> Result<Self, Error>
pub fn read_all<'a>( input_dir: &'a str, fmspc: &'a Fmspc, ) -> impl Iterator<Item = Result<Self, Error>> + 'a
pub fn raw_tcb_info(&self) -> &String
pub fn signature(&self) -> &Vec<u8> ⓘ
pub fn certificate_chain(&self) -> &Vec<String>
pub fn data(&self) -> Result<TcbData<Unverified>, Error>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TcbInfo
impl<'de> Deserialize<'de> for TcbInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TcbInfo
impl StructuralPartialEq for TcbInfo
Auto Trait Implementations§
impl Freeze for TcbInfo
impl RefUnwindSafe for TcbInfo
impl Send for TcbInfo
impl Sync for TcbInfo
impl Unpin for TcbInfo
impl UnwindSafe for TcbInfo
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