pub struct MaterializationOwnershipRecord {Show 14 fields
pub id: MaterializationId,
pub environment_profile: Option<ResolvedEnvironmentProfileReceipt>,
pub bundle: Option<ResolvedBundleReceipt>,
pub context: Option<ResolvedContextPackReceipt>,
pub owner: MaterializationOwner,
pub managed_lease_id: Option<ManagedWorktreeLeaseId>,
pub state: MaterializationState,
pub root: PathBuf,
pub provider_home: PathBuf,
pub bundle_root: PathBuf,
pub plugin_data: PathBuf,
pub declared_paths: Vec<MaterializedPathDeclaration>,
pub created_at_unix_ms: u64,
pub updated_at_unix_ms: u64,
}Fields§
§id: MaterializationId§environment_profile: Option<ResolvedEnvironmentProfileReceipt>§bundle: Option<ResolvedBundleReceipt>§context: Option<ResolvedContextPackReceipt>§owner: MaterializationOwner§managed_lease_id: Option<ManagedWorktreeLeaseId>§state: MaterializationState§root: PathBuf§provider_home: PathBuf§bundle_root: PathBuf§plugin_data: PathBuf§declared_paths: Vec<MaterializedPathDeclaration>§created_at_unix_ms: u64§updated_at_unix_ms: u64Implementations§
Source§impl MaterializationOwnershipRecord
impl MaterializationOwnershipRecord
pub fn from_persisted( id: MaterializationId, environment_profile: Option<ResolvedEnvironmentProfileReceipt>, bundle: Option<ResolvedBundleReceipt>, context: Option<ResolvedContextPackReceipt>, owner: MaterializationOwner, managed_lease_id: Option<ManagedWorktreeLeaseId>, state: MaterializationState, root: PathBuf, provider_home: PathBuf, bundle_root: PathBuf, plugin_data: PathBuf, declared_paths: Vec<MaterializedPathDeclaration>, created_at_unix_ms: u64, updated_at_unix_ms: u64, ) -> Result<Self, MaterializationRecordError>
pub fn id(&self) -> &MaterializationId
pub fn environment_profile(&self) -> Option<&ResolvedEnvironmentProfileReceipt>
pub fn bundle(&self) -> Option<&ResolvedBundleReceipt>
pub fn context(&self) -> Option<&ResolvedContextPackReceipt>
pub fn owner(&self) -> &MaterializationOwner
pub fn managed_lease_id(&self) -> Option<&ManagedWorktreeLeaseId>
pub fn state(&self) -> MaterializationState
pub fn root(&self) -> &Path
pub fn provider_home(&self) -> &Path
pub fn bundle_root(&self) -> &Path
pub fn plugin_data(&self) -> &Path
pub fn declared_paths(&self) -> &[MaterializedPathDeclaration]
pub fn created_at_unix_ms(&self) -> u64
pub fn updated_at_unix_ms(&self) -> u64
pub fn mark_ready(&mut self, now: u64) -> Result<(), MaterializationRecordError>
pub fn transfer_to_record( &mut self, record_id: SessionRecordId, now: u64, ) -> Result<(), MaterializationRecordError>
pub fn transfer_record_owner( &mut self, expected_record_id: &SessionRecordId, replacement_record_id: SessionRecordId, now: u64, ) -> Result<(), MaterializationRecordError>
pub fn mark_cleanup_required( &mut self, now: u64, ) -> Result<(), MaterializationRecordError>
pub fn mark_recovery_required( &mut self, now: u64, ) -> Result<(), MaterializationRecordError>
pub fn validate(&self) -> Result<(), MaterializationRecordError>
Trait Implementations§
impl Eq for MaterializationOwnershipRecord
impl StructuralPartialEq for MaterializationOwnershipRecord
Auto Trait Implementations§
impl Freeze for MaterializationOwnershipRecord
impl RefUnwindSafe for MaterializationOwnershipRecord
impl Send for MaterializationOwnershipRecord
impl Sync for MaterializationOwnershipRecord
impl Unpin for MaterializationOwnershipRecord
impl UnsafeUnpin for MaterializationOwnershipRecord
impl UnwindSafe for MaterializationOwnershipRecord
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