// Copyright 2021 Contributors to the Parsec project.
// SPDX-License-Identifier: Apache-2.0
usecrate::Result;/// Trait for types that can be converted into
/// TPM marshalled data.
pubtraitMarshall: Sized {constBUFFER_SIZE:usize;/// Returns the type in the form of marshalled data
fnmarshall(&self)->Result<Vec<u8>>;}/// Trait for types that can be created from
/// TPM marshalled data.
pubtraitUnMarshall: Sized {/// Creates the type from marshalled data.
fnunmarshall(marshalled_data:&[u8])->Result<Self>;}