pub struct LocalSnapshotProvider { /* private fields */ }Expand description
Explicit local/test snapshot importer. The configured root is the only directory under which destination workspace IDs may be created.
Implementations§
Source§impl LocalSnapshotProvider
impl LocalSnapshotProvider
pub fn for_local_development(destination_root: PathBuf) -> Result<Self>
Trait Implementations§
Source§impl Clone for LocalSnapshotProvider
impl Clone for LocalSnapshotProvider
Source§impl Debug for LocalSnapshotProvider
impl Debug for LocalSnapshotProvider
Source§impl SnapshotProvider for LocalSnapshotProvider
impl SnapshotProvider for LocalSnapshotProvider
fn export_snapshot<'life0, 'life1, 'async_trait>(
&'life0 self,
durable_backend_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn SnapshotObjectReader>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn import_snapshot<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
workspace_id: &'life1 str,
config: &'life2 WorkspaceConfig,
snapshot: Arc<dyn SnapshotObjectReader>,
_idempotency_key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<ProvisionedWorkspace>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Auto Trait Implementations§
impl Freeze for LocalSnapshotProvider
impl RefUnwindSafe for LocalSnapshotProvider
impl Send for LocalSnapshotProvider
impl Sync for LocalSnapshotProvider
impl Unpin for LocalSnapshotProvider
impl UnsafeUnpin for LocalSnapshotProvider
impl UnwindSafe for LocalSnapshotProvider
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