Struct dagger_sdk::DaggerEngineCache
source · pub struct DaggerEngineCache {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
source§impl DaggerEngineCache
impl DaggerEngineCache
sourcepub fn entry_set(&self) -> DaggerEngineCacheEntrySet
pub fn entry_set(&self) -> DaggerEngineCacheEntrySet
The current set of entries in the cache
sourcepub async fn id(&self) -> Result<DaggerEngineCacheId, DaggerError>
pub async fn id(&self) -> Result<DaggerEngineCacheId, DaggerError>
A unique identifier for this DaggerEngineCache.
sourcepub async fn keep_bytes(&self) -> Result<isize, DaggerError>
pub async fn keep_bytes(&self) -> Result<isize, DaggerError>
The maximum bytes to keep in the cache without pruning, after which automatic pruning may kick in.
sourcepub async fn prune(&self) -> Result<Void, DaggerError>
pub async fn prune(&self) -> Result<Void, DaggerError>
Prune the cache of releaseable entries
Trait Implementations§
source§impl Clone for DaggerEngineCache
impl Clone for DaggerEngineCache
source§fn clone(&self) -> DaggerEngineCache
fn clone(&self) -> DaggerEngineCache
Returns a copy 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<DaggerEngineCacheId> for DaggerEngineCache
impl IntoID<DaggerEngineCacheId> for DaggerEngineCache
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<DaggerEngineCacheId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for DaggerEngineCache
impl !RefUnwindSafe for DaggerEngineCache
impl Send for DaggerEngineCache
impl Sync for DaggerEngineCache
impl Unpin for DaggerEngineCache
impl !UnwindSafe for DaggerEngineCache
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)