pub struct EngineCache {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
Source§impl EngineCache
impl EngineCache
Sourcepub fn entry_set(&self) -> EngineCacheEntrySet
pub fn entry_set(&self) -> EngineCacheEntrySet
The current set of entries in the cache
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn entry_set_opts<'a>(
&self,
opts: EngineCacheEntrySetOpts<'a>,
) -> EngineCacheEntrySet
pub fn entry_set_opts<'a>( &self, opts: EngineCacheEntrySetOpts<'a>, ) -> EngineCacheEntrySet
The current set of entries in the cache
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn id(&self) -> Result<EngineCacheId, DaggerError>
pub async fn id(&self) -> Result<EngineCacheId, DaggerError>
A unique identifier for this EngineCache.
Sourcepub async fn max_used_space(&self) -> Result<isize, DaggerError>
pub async fn max_used_space(&self) -> Result<isize, DaggerError>
The maximum bytes to keep in the cache without pruning.
Sourcepub async fn min_free_space(&self) -> Result<isize, DaggerError>
pub async fn min_free_space(&self) -> Result<isize, DaggerError>
The target amount of free disk space the garbage collector will attempt to leave.
Sourcepub async fn prune(&self) -> Result<Void, DaggerError>
pub async fn prune(&self) -> Result<Void, DaggerError>
Prune the cache of releaseable entries
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn prune_opts<'a>(
&self,
opts: EngineCachePruneOpts<'a>,
) -> Result<Void, DaggerError>
pub async fn prune_opts<'a>( &self, opts: EngineCachePruneOpts<'a>, ) -> Result<Void, DaggerError>
Prune the cache of releaseable entries
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn reserved_space(&self) -> Result<isize, DaggerError>
pub async fn reserved_space(&self) -> Result<isize, DaggerError>
The minimum amount of disk space this policy is guaranteed to retain.
Sourcepub async fn target_space(&self) -> Result<isize, DaggerError>
pub async fn target_space(&self) -> Result<isize, DaggerError>
The target number of bytes to keep when pruning.
Trait Implementations§
Source§impl Clone for EngineCache
impl Clone for EngineCache
Source§fn clone(&self) -> EngineCache
fn clone(&self) -> EngineCache
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl IntoID<EngineCacheId> for EngineCache
impl IntoID<EngineCacheId> for EngineCache
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<EngineCacheId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for EngineCache
impl !RefUnwindSafe for EngineCache
impl Send for EngineCache
impl Sync for EngineCache
impl Unpin for EngineCache
impl UnsafeUnpin for EngineCache
impl !UnwindSafe for EngineCache
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