pub struct Memory<S, P>where
S: Clone,{ /* private fields */ }Expand description
This endpoint implements the Memory component.
It can be mounted on the following components:
Implementations§
Source§impl<S, P> Memory<S, P>where
S: AsRef<dyn AuthenticateRequest> + Clone + Send + Sync + 'static,
P: OperationPrivilegeMapping + 'static,
<P as OperationPrivilegeMapping>::Get: Send,
<P as OperationPrivilegeMapping>::Put: Send,
<P as OperationPrivilegeMapping>::Patch: Send,
<P as OperationPrivilegeMapping>::Post: Send,
impl<S, P> Memory<S, P>where
S: AsRef<dyn AuthenticateRequest> + Clone + Send + Sync + 'static,
P: OperationPrivilegeMapping + 'static,
<P as OperationPrivilegeMapping>::Get: Send,
<P as OperationPrivilegeMapping>::Put: Send,
<P as OperationPrivilegeMapping>::Patch: Send,
<P as OperationPrivilegeMapping>::Post: Send,
pub fn get<H, T>(self, handler: H) -> Self
pub fn put<H, T>(self, handler: H) -> Self
pub fn patch<H, T>(self, handler: H) -> Self
Sourcepub fn device_log(self, device_log: Router<S>) -> Self
pub fn device_log(self, device_log: Router<S>) -> Self
Serves an instance of a LogService.
Sourcepub fn certificates(self, certificates: Router<S>) -> Self
pub fn certificates(self, certificates: Router<S>) -> Self
Serves an instance of a CertificateCollection.
Sourcepub fn environment_metrics(self, environment_metrics: Router<S>) -> Self
pub fn environment_metrics(self, environment_metrics: Router<S>) -> Self
Serves an instance of a EnvironmentMetrics.
Sourcepub fn memory_metrics(self, memory_metrics: Router<S>) -> Self
pub fn memory_metrics(self, memory_metrics: Router<S>) -> Self
Serves an instance of a MemoryMetrics.
Sourcepub fn disable_master_passphrase<H, T>(self, handler: H) -> Self
pub fn disable_master_passphrase<H, T>(self, handler: H) -> Self
Perform the DisableMasterPassphrase operation on this Memory instance.
Sourcepub fn disable_passphrase<H, T>(self, handler: H) -> Self
pub fn disable_passphrase<H, T>(self, handler: H) -> Self
Perform the DisablePassphrase operation on this Memory instance.
Sourcepub fn freeze_security_state<H, T>(self, handler: H) -> Self
pub fn freeze_security_state<H, T>(self, handler: H) -> Self
Perform the FreezeSecurityState operation on this Memory instance.
Sourcepub fn inject_persistent_poison<H, T>(self, handler: H) -> Self
pub fn inject_persistent_poison<H, T>(self, handler: H) -> Self
Perform the InjectPersistentPoison operation on this Memory instance.
Sourcepub fn overwrite_unit<H, T>(self, handler: H) -> Self
pub fn overwrite_unit<H, T>(self, handler: H) -> Self
Perform the OverwriteUnit operation on this Memory instance.
Sourcepub fn reset<H, T>(self, handler: H) -> Self
pub fn reset<H, T>(self, handler: H) -> Self
Perform the Reset operation on this Memory instance.
Sourcepub fn reset_to_defaults<H, T>(self, handler: H) -> Self
pub fn reset_to_defaults<H, T>(self, handler: H) -> Self
Perform the ResetToDefaults operation on this Memory instance.
Sourcepub fn scan_media<H, T>(self, handler: H) -> Self
pub fn scan_media<H, T>(self, handler: H) -> Self
Perform the ScanMedia operation on this Memory instance.
Sourcepub fn secure_erase_unit<H, T>(self, handler: H) -> Self
pub fn secure_erase_unit<H, T>(self, handler: H) -> Self
Perform the SecureEraseUnit operation on this Memory instance.
Sourcepub fn set_master_passphrase<H, T>(self, handler: H) -> Self
pub fn set_master_passphrase<H, T>(self, handler: H) -> Self
Perform the SetMasterPassphrase operation on this Memory instance.
Sourcepub fn set_passphrase<H, T>(self, handler: H) -> Self
pub fn set_passphrase<H, T>(self, handler: H) -> Self
Perform the SetPassphrase operation on this Memory instance.
Sourcepub fn unlock_unit<H, T>(self, handler: H) -> Self
pub fn unlock_unit<H, T>(self, handler: H) -> Self
Perform the UnlockUnit operation on this Memory instance.