pub struct AttachmentIntent {
pub attachment_id: AttachmentId,
pub session_id: String,
pub canonical_uri: String,
pub intent_at_epoch_ms: u64,
}Expand description
A pending attachment write recorded before the bytes hit the
AttachmentStore backend.
The runtime calls AttachmentManifest::record_intent from the
SessionScopedAttachmentStore
wrapper before each put, so the manifest is a durable record that
“some bytes are about to land at this URI.” When the turn that
references the attachment commits successfully via
RuntimePersistence::commit_runtime_state, the same transaction
stamps committed_at_epoch_ms. Periodic GC sweeps manifest rows
whose intent has aged past a host-chosen threshold without ever
being committed and deletes the corresponding bytes — that’s how we
reconcile orphaned files left behind by crashes between put and
the next turn commit.
Fields§
§attachment_id: AttachmentId§session_id: String§canonical_uri: StringCanonical URI for the attachment payload in the backing store. For file-backed stores this is the absolute on-disk path; for blob-backed stores it can be any stable identifier the host uses to clean the payload up.
intent_at_epoch_ms: u64Trait Implementations§
Source§impl Clone for AttachmentIntent
impl Clone for AttachmentIntent
Source§fn clone(&self) -> AttachmentIntent
fn clone(&self) -> AttachmentIntent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more