pub struct ModelDownloadResult {
pub path: Option<PathBuf>,
pub resolved_revision: Option<String>,
}Expand description
What a completed model request resolved to.
Callers that need the frontend and the workers to agree on one commit use
resolved_revision; it is None only for providers with no revision concept.
path is the local snapshot directory, and is None when the client has no cache
configured to resolve it against.
Fields§
§path: Option<PathBuf>§resolved_revision: Option<String>Trait Implementations§
Source§impl Clone for ModelDownloadResult
impl Clone for ModelDownloadResult
Source§impl Debug for ModelDownloadResult
impl Debug for ModelDownloadResult
impl Eq for ModelDownloadResult
Source§impl From<ModelDownloadOutcome> for ModelDownloadResult
impl From<ModelDownloadOutcome> for ModelDownloadResult
Source§fn from(outcome: ModelDownloadOutcome) -> Self
fn from(outcome: ModelDownloadOutcome) -> Self
A direct provider download always knows where it put the files.
Source§impl PartialEq for ModelDownloadResult
impl PartialEq for ModelDownloadResult
impl StructuralPartialEq for ModelDownloadResult
Auto Trait Implementations§
impl Freeze for ModelDownloadResult
impl RefUnwindSafe for ModelDownloadResult
impl Send for ModelDownloadResult
impl Sync for ModelDownloadResult
impl Unpin for ModelDownloadResult
impl UnsafeUnpin for ModelDownloadResult
impl UnwindSafe for ModelDownloadResult
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§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§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
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request