Skip to main content

Actions

Struct Actions 

Source
pub struct Actions {
Show 13 fields pub oem: Option<OemActions>, pub disable_master_passphrase: Option<Action<MemoryDisableMasterPassphraseAction, ()>>, pub disable_passphrase: Option<Action<MemoryDisablePassphraseAction, ()>>, pub freeze_security_state: Option<Action<MemoryFreezeSecurityStateAction, ()>>, pub inject_persistent_poison: Option<Action<MemoryInjectPersistentPoisonAction, ()>>, pub overwrite_unit: Option<Action<MemoryOverwriteUnitAction, ()>>, pub reset: Option<Action<MemoryResetAction, ()>>, pub reset_to_defaults: Option<Action<MemoryResetToDefaultsAction, ()>>, pub scan_media: Option<Action<MemoryScanMediaAction, ()>>, pub secure_erase_unit: Option<Action<MemorySecureEraseUnitAction, ()>>, pub set_master_passphrase: Option<Action<MemorySetMasterPassphraseAction, ()>>, pub set_passphrase: Option<Action<MemorySetPassphraseAction, ()>>, pub unlock_unit: Option<Action<MemoryUnlockUnitAction, ()>>,
}
Expand description

The available actions for this resource.

This type shall contain the available actions for this resource.

Fields§

§oem: Option<OemActions>

The available OEM-specific actions for this resource.

This property shall contain the available OEM-specific actions for this resource.

§disable_master_passphrase: Option<Action<MemoryDisableMasterPassphraseAction, ()>>§disable_passphrase: Option<Action<MemoryDisablePassphraseAction, ()>>§freeze_security_state: Option<Action<MemoryFreezeSecurityStateAction, ()>>§inject_persistent_poison: Option<Action<MemoryInjectPersistentPoisonAction, ()>>§overwrite_unit: Option<Action<MemoryOverwriteUnitAction, ()>>§reset: Option<Action<MemoryResetAction, ()>>§reset_to_defaults: Option<Action<MemoryResetToDefaultsAction, ()>>§scan_media: Option<Action<MemoryScanMediaAction, ()>>§secure_erase_unit: Option<Action<MemorySecureEraseUnitAction, ()>>§set_master_passphrase: Option<Action<MemorySetMasterPassphraseAction, ()>>§set_passphrase: Option<Action<MemorySetPassphraseAction, ()>>§unlock_unit: Option<Action<MemoryUnlockUnitAction, ()>>

Implementations§

Source§

impl Actions

Source

pub async fn disable_master_passphrase<B: Bmc>( &self, bmc: &B, region_id: Option<String>, passphrase: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

Disables the master passphrase for the given region.

This action shall disable the master passphrase on the supplied region provided the supplied master passphrase matches that of the region.

§Errors
Source

pub async fn disable_passphrase<B: Bmc>( &self, bmc: &B, region_id: Option<String>, passphrase: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

Disable passphrase for the given region.

This action shall disable the need for passphrases on the supplied region provided the supplied passphrase matches that of the region.

§Errors
Source

pub async fn freeze_security_state<B: Bmc>( &self, bmc: &B, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

Freezes the security state of the memory device.

This action shall freeze the security state of the memory device.

§Errors
Source

pub async fn inject_persistent_poison<B: Bmc>( &self, bmc: &B, physical_address: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

Injects poison to a specific persistent memory address in the memory device.

This action shall inject poison to a specific persistent memory address in the memory device.

§Errors
Source

pub async fn overwrite_unit<B: Bmc>( &self, bmc: &B, region_id: Option<String>, passphrase: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This contains the action for securely erasing given regions using the NIST SP800-88 Purge: Overwrite.

This action shall securely erase the supplied region provided the supplied passphrase matches that of the given region using the NIST SP800-88 Purge: Overwrite. Use the SecureEraseUnit method to perform NIST SP800-88 Purge: Cryptographic Erase.

§Errors
Source

pub async fn reset<B: Bmc>( &self, bmc: &B, reset_type: Option<ResetType>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This action resets this memory device.

This action shall reset this memory device.

§Errors
Source

pub async fn reset_to_defaults<B: Bmc>( &self, bmc: &B, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

The action resets the values of writable properties to factory defaults.

This action shall reset the values of writable properties in this resource to their default values as specified by the manufacturer.

§Errors
Source

pub async fn scan_media<B: Bmc>( &self, bmc: &B, physical_address: Option<String>, length: Option<Int64>, no_event_log: Option<Boolean>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

Scans the media of the memory device.

This action shall scan the media of the memory device.

§Errors
Source

pub async fn secure_erase_unit<B: Bmc>( &self, bmc: &B, region_id: Option<String>, passphrase: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This contains the action for securely erasing given regions using the NIST SP800-88 Purge: Cryptographic Erase.

This action shall securely erase the supplied region provided the supplied passphrase matches that of the given region using the NIST SP800-88 Purge: Cryptographic Erase. Use the OverwriteUnit method to perform NIST SP800-88 Purge: Overwrite.

§Errors
Source

pub async fn set_master_passphrase<B: Bmc>( &self, bmc: &B, region_id: Option<String>, passphrase: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

Sets the master passphrase for the given region.

This action shall set the supplied master passphrase to the supplied region.

§Errors
Source

pub async fn set_passphrase<B: Bmc>( &self, bmc: &B, region_id: Option<String>, passphrase: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

Set passphrase for the given regions.

This action shall apply the supplied passphrase to the supplied region.

§Errors
Source

pub async fn unlock_unit<B: Bmc>( &self, bmc: &B, region_id: Option<String>, passphrase: Option<String>, ) -> Result<ModificationResponse<()>, B::Error>
where B::Error: ActionError,

This contains the action for unlocking given regions.

This action shall apply the supplied passphrase to the supplied region for the purpose of unlocking the given regions.

§Errors

Trait Implementations§

Source§

impl Debug for Actions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Actions

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,