pub struct CommandCodeAttributesBuilder { /* private fields */ }
Expand description

A builder for CommandCodeAttributes

Implementations

Creates a new command code attributes builder.

Sets the command code to the specified value in the builder.

Sets the ‘nv’ bit in the builder.

Sets the ‘extensive’ bit in the builder.

Sets the ‘flushed’ bit in the builder.

Sets the three ‘c_handles’ bits in the builder.

Details

All bits besides the three first in the provided argument will be ignored.

Sets the ‘r_handle’ bit in the builder.

Sets the ‘V’(i.e. vendor specific) bit in the builder.

Builds the command code attributes

Errors

Returns an error if command index is not a command index associated with a CommandCode specified in the TPM specification.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Drops the content pointed by this pointer and frees it. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.