pub enum DaemonRequest {
Get {
content_hash: String,
},
Put {
content_hash: String,
artifact: CachedArtifact,
},
Warm {
content_hash: String,
},
}Expand description
A request from a client (the daemon-aware wrapper client, or any other same-node caller) to the node cache daemon.
Variants§
Get
Look up a content hash. Checks the local L0 store first; on a local miss, the daemon reaches into the remote tier itself and persists the result locally before responding — the caller never needs to know which tier actually served it.
Put
Persist an artifact under a content hash in the local L0 store
only (fast local write-back). Callers that also need the
shared remote tier updated (today: sui-dockerfile-wrapper’s
cache back-fill on a miss) write to the remote tier themselves
— this daemon does not implicitly forward Puts upstream.
Warm
Ask the daemon to proactively ensure a content hash is present
locally, without blocking on the fetch. Fire-and-forget;
callers that need to know the artifact is ready should follow
up with a Get.
Trait Implementations§
Source§impl Clone for DaemonRequest
impl Clone for DaemonRequest
Source§fn clone(&self) -> DaemonRequest
fn clone(&self) -> DaemonRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DaemonRequest
impl Debug for DaemonRequest
Source§impl<'de> Deserialize<'de> for DaemonRequest
impl<'de> Deserialize<'de> for DaemonRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for DaemonRequest
Source§impl PartialEq for DaemonRequest
impl PartialEq for DaemonRequest
Source§impl Serialize for DaemonRequest
impl Serialize for DaemonRequest
impl StructuralPartialEq for DaemonRequest
Auto Trait Implementations§
impl Freeze for DaemonRequest
impl RefUnwindSafe for DaemonRequest
impl Send for DaemonRequest
impl Sync for DaemonRequest
impl Unpin for DaemonRequest
impl UnsafeUnpin for DaemonRequest
impl UnwindSafe for DaemonRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more