pub struct TbfHeaderStoragePermissions<C: Chip, D: ProcessStandardDebug, CAP: ApplicationStorageCapability> { /* private fields */ }
Expand description
Assign storage permissions based on the fields in the application’s TBF header.
If the process does not have a fixed ShortId then it cannot have storage permissions and will get null permissions.
If the header is not present, then the process will be assigned null permissions.
Implementations§
Source§impl<C: Chip, D: ProcessStandardDebug, CAP: ApplicationStorageCapability> TbfHeaderStoragePermissions<C, D, CAP>
impl<C: Chip, D: ProcessStandardDebug, CAP: ApplicationStorageCapability> TbfHeaderStoragePermissions<C, D, CAP>
Trait Implementations§
Source§impl<C: Chip, D: ProcessStandardDebug, CAP: ApplicationStorageCapability> ProcessStandardStoragePermissionsPolicy<C, D> for TbfHeaderStoragePermissions<C, D, CAP>
impl<C: Chip, D: ProcessStandardDebug, CAP: ApplicationStorageCapability> ProcessStandardStoragePermissionsPolicy<C, D> for TbfHeaderStoragePermissions<C, D, CAP>
Source§fn get_permissions(
&self,
process: &ProcessStandard<'_, C, D>,
) -> StoragePermissions
fn get_permissions( &self, process: &ProcessStandard<'_, C, D>, ) -> StoragePermissions
Return the storage permissions for the specified
process
.Auto Trait Implementations§
impl<C, D, CAP> Freeze for TbfHeaderStoragePermissions<C, D, CAP>where
CAP: Freeze,
impl<C, D, CAP> RefUnwindSafe for TbfHeaderStoragePermissions<C, D, CAP>
impl<C, D, CAP> Send for TbfHeaderStoragePermissions<C, D, CAP>
impl<C, D, CAP> Sync for TbfHeaderStoragePermissions<C, D, CAP>
impl<C, D, CAP> Unpin for TbfHeaderStoragePermissions<C, D, CAP>
impl<C, D, CAP> UnwindSafe for TbfHeaderStoragePermissions<C, D, CAP>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more