pub struct RemoteServices { /* private fields */ }Implementations§
Source§impl RemoteServices
impl RemoteServices
pub fn load_snapshot( &self, snapshot: FileSnapshot, document: DocumentID, recovery: Option<&RecoveryStore>, ) -> Result<(LoadedDocument, LoadBudget), CoreError>
pub fn save_prepared( &self, recovery: &RecoveryStore, prepared: PreparedSave, ) -> OperationReceipt
Source§impl RemoteServices
impl RemoteServices
pub fn prepare_owned_save( &self, request: SaveRequest, ) -> Result<RemoteOwnedSave, CoreError>
pub fn prepare_owned_document( &self, recovery: &RecoveryStore, prepared: PreparedSave, ) -> Result<RemoteOwnedSave, CoreError>
Source§impl RemoteServices
impl RemoteServices
Sourcepub fn observe_owned<'a>(
&self,
worktree: WorktreeIdentity,
aliases: impl Iterator<Item = &'a FileRef> + Clone,
on_event: impl FnMut(ObservationEvent) -> Result<(), CoreError>,
) -> Result<OwnedObservation, CoreError>
pub fn observe_owned<'a>( &self, worktree: WorktreeIdentity, aliases: impl Iterator<Item = &'a FileRef> + Clone, on_event: impl FnMut(ObservationEvent) -> Result<(), CoreError>, ) -> Result<OwnedObservation, CoreError>
Freeze the complete aliases under the caller’s registration barrier. Events remain provisional until this method validates the complete codec and authenticated end seal.
Sourcepub fn existing_original(
&self,
original: &GitMutationRequest,
) -> Result<Option<OperationReceipt>, CoreError>
pub fn existing_original( &self, original: &GitMutationRequest, ) -> Result<Option<OperationReceipt>, CoreError>
Worker-only existing lookup. This cannot promote a missing original into new work.
Sourcepub fn prepare_worktree<'a>(
&self,
original: &GitMutationRequest,
observation: [u8; 16],
alias_digest: [u8; 32],
approvals: impl Iterator<Item = &'a GitSaveApproval> + Clone,
) -> Result<WorktreePreparation, CoreError>
pub fn prepare_worktree<'a>( &self, original: &GitMutationRequest, observation: [u8; 16], alias_digest: [u8; 32], approvals: impl Iterator<Item = &'a GitSaveApproval> + Clone, ) -> Result<WorktreePreparation, CoreError>
Existing receipt wins before approval iteration. Preserve the original ID on every error.
pub fn execute_worktree<'a>( &self, original: GitMutationRequest, plan: [u8; 16], alias_digest: [u8; 32], approvals: impl Iterator<Item = &'a GitSaveApproval> + Clone, ) -> Result<OperationReceipt, CoreError>
pub fn cancel_worktree_plan(&self, plan: [u8; 16]) -> Result<(), CoreError>
pub fn release_observation( &self, observation: [u8; 16], ) -> Result<(), CoreError>
Source§impl RemoteServices
impl RemoteServices
Sourcepub fn connect(
socket: UnixStream,
target: TargetIdentity,
lease: WorkspaceLease,
spool_directory: PathBuf,
) -> Result<Self, CoreError>
pub fn connect( socket: UnixStream, target: TargetIdentity, lease: WorkspaceLease, spool_directory: PathBuf, ) -> Result<Self, CoreError>
The route owner supplies an authenticated byte transport and verified target, never a display hostname.
Sourcepub fn register_workspace(
&self,
lease: WorkspaceLease,
) -> Result<Self, CoreError>
pub fn register_workspace( &self, lease: WorkspaceLease, ) -> Result<Self, CoreError>
Worker-only registration; all views share the existing wire worker and spool pool.
Sourcepub fn observe_owner(
&self,
owner: WorkspaceLease,
) -> Result<LeaseObservation, CoreError>
pub fn observe_owner( &self, owner: WorkspaceLease, ) -> Result<LeaseObservation, CoreError>
Worker-only, read-only observation of an exact prior owner.
pub fn lease(&self) -> &WorkspaceLease
pub fn target(&self) -> &TargetIdentity
pub fn validate_environment_ready(&self) -> Result<(), CoreError>
pub fn negotiated_capabilities(&self) -> &[String]
Sourcepub fn release_workspace(
&self,
intent: LeaseReleaseIntent,
) -> Result<(), CoreError>
pub fn release_workspace( &self, intent: LeaseReleaseIntent, ) -> Result<(), CoreError>
Revokes this view’s new-work authority; other registered views remain connected.
Sourcepub fn close_connection(&self) -> RemoteShutdown ⓘ
pub fn close_connection(&self) -> RemoteShutdown ⓘ
Physical-route owner only. Drop the SSH channel separately and await both shutdowns off the owner thread.