pub struct ProfiledVersionJsonDriver<F>where
F: ProfiledVersionJsonFamily,{ /* private fields */ }Implementations§
Source§impl<F> ProfiledVersionJsonDriver<F>where
F: ProfiledVersionJsonFamily,
impl<F> ProfiledVersionJsonDriver<F>where
F: ProfiledVersionJsonFamily,
pub fn new(family: F, source: F::Source) -> Self
pub fn with_vanilla_source(self, vanilla_source: VanillaSource) -> Self
pub fn with_defaults(family: F) -> Result<Self>
pub fn descriptor(&self) -> DriverDescriptor
Trait Implementations§
Source§impl<F> Clone for ProfiledVersionJsonDriver<F>
impl<F> Clone for ProfiledVersionJsonDriver<F>
Source§impl<F> Debug for ProfiledVersionJsonDriver<F>
impl<F> Debug for ProfiledVersionJsonDriver<F>
Source§impl<F> Driver for ProfiledVersionJsonDriver<F>
impl<F> Driver for ProfiledVersionJsonDriver<F>
fn descriptor(&self) -> DriverDescriptor
fn inspect<'life0, 'life1, 'async_trait>(
&'life0 self,
probe: &'life1 InstanceProbe,
) -> Pin<Box<dyn Future<Output = Result<Option<InstalledDriver>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 PrepareRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ResolvedDriverPlan>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 PrepareRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ResolvedDriverPlan>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolves metadata and download sources needed to install or refresh an instance.
Source§fn verify_prepared<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_instance: &'life1 InstanceStorage,
_prepared: &'life2 PreparedVersionJsonInstance,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify_prepared<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_instance: &'life1 InstanceStorage,
_prepared: &'life2 PreparedVersionJsonInstance,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Verifies family-specific persisted state when loading an existing instance.
Source§fn prepare<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 PrepareRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<PreparedVersionJsonInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn prepare<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 PrepareRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<PreparedVersionJsonInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Prepare a version for launch and return the common version JSON view. Read more
Source§fn load_prepared<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 InstanceStorage,
) -> Pin<Box<dyn Future<Output = Result<PreparedVersionJsonInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_prepared<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 InstanceStorage,
) -> Pin<Box<dyn Future<Output = Result<PreparedVersionJsonInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load a prepared version and return the common version JSON view. Read more
Auto Trait Implementations§
impl<F> Forget for ProfiledVersionJsonDriver<F>
impl<F> Freeze for ProfiledVersionJsonDriver<F>where
F: Freeze,
<F as ProfiledVersionJsonFamily>::Source: Freeze,
*const ArcInner<RwLock<ClientState>> is !null: Freeze,
PhantomData<ArcInner<RwLock<ClientState>>>: Freeze,
*const [Pos] is !null: Freeze,
PhantomData<[Pos]>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Bucket<HeaderValue>>: Freeze,
PhantomData<ExtraValue<HeaderValue>>: Freeze,
PhantomData<(String, Url)>: Freeze,
impl<F> Move for ProfiledVersionJsonDriver<F>
impl<F> RefUnwindSafe for ProfiledVersionJsonDriver<F>where
F: RefUnwindSafe,
<F as ProfiledVersionJsonFamily>::Source: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
RwLock<ClientState>: RefUnwindSafe,
Atomic<*mut ()>: RefUnwindSafe,
impl<F> Send for ProfiledVersionJsonDriver<F>
impl<F> Sync for ProfiledVersionJsonDriver<F>
impl<F> Unpin for ProfiledVersionJsonDriver<F>
impl<F> UnsafeUnpin for ProfiledVersionJsonDriver<F>where
F: UnsafeUnpin,
<F as ProfiledVersionJsonFamily>::Source: UnsafeUnpin,
*const ArcInner<RwLock<ClientState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ClientState>>>: UnsafeUnpin,
*const [Pos] is !null: UnsafeUnpin,
PhantomData<[Pos]>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Bucket<HeaderValue>>: UnsafeUnpin,
PhantomData<ExtraValue<HeaderValue>>: UnsafeUnpin,
PhantomData<(String, Url)>: UnsafeUnpin,
impl<F> UnwindSafe for ProfiledVersionJsonDriver<F>where
F: UnwindSafe,
<F as ProfiledVersionJsonFamily>::Source: UnwindSafe,
Arc<RwLock<ClientState>>: UnwindSafe,
BoxRaw<[Pos]>: UnwindSafe,
RawVecInner: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
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