Trait TpmObject
Source pub trait TpmObject: Any + Debug {
// Required methods
fn build(&self, writer: &mut TpmWriter<'_>) -> TpmResult<()>;
fn len(&self) -> usize;
fn as_any(&self) -> &dyn Any;
fn dyn_eq(&self, other: &dyn TpmObject) -> bool;
}
Builds the object into the given writer.
§Errors
TpmErrorKind::ValueTooLarge if the object contains a value that cannot be built.
TpmErrorKind::Boundary if the writer runs out of space.
Returns the exact serialized size of the object.
Returns the object as a &dyn Any for downcasting.
Performs a dynamic equality check against another TpmObject.