Trait FileHistoryTransport
pub trait FileHistoryTransport: Send + Sync {
// Required methods
fn read(
&self,
query: FileHistoryReadQueryV1,
) -> Result<FileHistoryReadValueV1, FileHistoryReadErrorV1>;
fn preview(
&self,
scope: FileHistoryReadScopeV1,
version: FileVersionId,
) -> Result<Vec<u8>, FileHistoryReadErrorV1>;
fn review(&self) -> Result<FileRestoreReviewV1, CheckedHistoryOutcomeV1>;
fn submit(
&self,
request: CheckedHistoryRequestV1,
) -> CheckedHistoryOutcomeV1;
fn result(&self, intent: Uuid) -> CheckedHistoryOutcomeV1;
}Expand description
Trusted owner-side transport. This handle is never included in preview input.
Required Methods§
fn read(
&self,
query: FileHistoryReadQueryV1,
) -> Result<FileHistoryReadValueV1, FileHistoryReadErrorV1>
fn read( &self, query: FileHistoryReadQueryV1, ) -> Result<FileHistoryReadValueV1, FileHistoryReadErrorV1>
§Errors
Returns the transport or checked-read failure for the requested scope.
fn preview(
&self,
scope: FileHistoryReadScopeV1,
version: FileVersionId,
) -> Result<Vec<u8>, FileHistoryReadErrorV1>
fn preview( &self, scope: FileHistoryReadScopeV1, version: FileVersionId, ) -> Result<Vec<u8>, FileHistoryReadErrorV1>
§Errors
Returns a checked-read failure when the requested version cannot be retrieved.
fn review(&self) -> Result<FileRestoreReviewV1, CheckedHistoryOutcomeV1>
fn review(&self) -> Result<FileRestoreReviewV1, CheckedHistoryOutcomeV1>
§Errors
Returns the checked operation outcome when a restore review cannot be produced.