#[repr(C)]pub struct QarRuntimeEphemeralStorageExt {
pub header: QarStructureHeader,
}Expand description
@brief Extension: keep this runtime’s identities in memory only.
Chain into QarRuntimeInit.header.next. For a process that must leave nothing on disk, typically a co-process joining with a co-process invite (see QarRequestInviteInit): the identity it onboards with lives in an in-memory secure store and is gone when the runtime is.
- qar_runtime_onboard writes nothing under the storage root, and out_onboarding_id is the zero id. A non-zero QarOnboardInit.onboarding_id is refused with QAR_STATUS_ARGUMENT_NOT_SUPPORTED. Certificate renewal works as usual.
- The identity is forgotten when its session handle is destroyed.
- qar_runtime_rejoin and qar_runtime_forget return QAR_STATUS_ARGUMENT_NOT_SUPPORTED: there is no persisted slot. A restarted process onboards again (a fresh co-process invite from its parent).
- Only identities are kept off disk. Logs still go to
QarLibraryInit.log_folder_path and carry no key or invite secret. A crash
dump (its
crashessubfolder, or QAR_CRASH_DUMP_DIR) holds process memory and may hold the in-memory key, which is good until its certificate expires (30 minutes for a co-process). - QarOnboardLocalAppExt is stateless already and is unaffected.
- A runtime older than this extension skips it like any unknown chained struct and stores the identity on disk. Before relying on it, check QarRuntimeInfo::version (qar_runtime_info) against the version whose changelog introduces it. The same holds for QarOnboardLocalAppTagExt.
Fields§
§header: QarStructureHeader< QAR_STRUCTURE_TYPE_RUNTIME_EPHEMERAL_STORAGE_EXT
Trait Implementations§
impl Copy for QarRuntimeEphemeralStorageExt
impl StructuralPartialEq for QarRuntimeEphemeralStorageExt
Auto Trait Implementations§
impl !Send for QarRuntimeEphemeralStorageExt
impl !Sync for QarRuntimeEphemeralStorageExt
impl Freeze for QarRuntimeEphemeralStorageExt
impl RefUnwindSafe for QarRuntimeEphemeralStorageExt
impl Unpin for QarRuntimeEphemeralStorageExt
impl UnsafeUnpin for QarRuntimeEphemeralStorageExt
impl UnwindSafe for QarRuntimeEphemeralStorageExt
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