pub struct ModalProvider { /* private fields */ }Expand description
Provider for Modal cloud sandboxes with image caching.
Implementations§
Source§impl ModalProvider
impl ModalProvider
Sourcepub fn from_config(
config: ModalProviderConfig,
working_dir: Option<PathBuf>,
) -> ProviderResult<Self>
pub fn from_config( config: ModalProviderConfig, working_dir: Option<PathBuf>, ) -> ProviderResult<Self>
Creates a new Modal provider from configuration.
§Arguments
config- Modal provider configurationworking_dir- Optional working directory for cache storage
§Returns
Result containing the provider instance, or an error if the working directory cannot be determined.
§Errors
Returns ProviderError::CreateFailed if:
- Working directory cannot be determined
- Working directory is not accessible
Trait Implementations§
Source§impl SandboxProvider for ModalProvider
impl SandboxProvider for ModalProvider
Source§fn create_sandbox<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 SandboxConfig,
) -> Pin<Box<dyn Future<Output = ProviderResult<ModalSandbox>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_sandbox<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 SandboxConfig,
) -> Pin<Box<dyn Future<Output = ProviderResult<ModalSandbox>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Creates a new sandbox with the given configuration. Read more
Auto Trait Implementations§
impl !Freeze for ModalProvider
impl !RefUnwindSafe for ModalProvider
impl Send for ModalProvider
impl Sync for ModalProvider
impl Unpin for ModalProvider
impl UnsafeUnpin for ModalProvider
impl !UnwindSafe for ModalProvider
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