Trait TpmCommandBuild
Source pub trait TpmCommandBuild {
// Required methods
fn build_handles(&self, writer: &mut TpmWriter<'_>) -> TpmResult<()>;
fn build_parameters(&self, writer: &mut TpmWriter<'_>) -> TpmResult<()>;
}
Expand description
A trait for building command bodies in separate handle and parameter sections.
Builds the handle area of the command.
§Errors
TpmErrorKind::BuildOverflow if writer would run out of space.
Builds the parameter area of the command.
§Errors
TpmErrorKind::BuildCapacity if the object contains a value exceeding capacity limit.
TpmErrorKind::BuildOverflow if writer would run out of space.