pub struct GpuBackend {
pub label: String,
}Expand description
GPU backend stub — issue #651 Phase 1 placeholder. Returns
not implemented from every call. Lands as a trait-conformant
type so the v0.8 GPU/MTP backend (mistralrs or candle in-process)
can drop in without a single caller-side refactor.
Fields§
§label: StringOperator-readable label (e.g. "distilled-hot-path-v0.8").
Stored even on the stub so attestation plumbing can be
exercised end-to-end during the v0.8 work.
Implementations§
Trait Implementations§
Source§impl Default for GpuBackend
impl Default for GpuBackend
Source§fn default() -> GpuBackend
fn default() -> GpuBackend
Returns the “default value” for a type. Read more
Source§impl InferenceBackend for GpuBackend
impl InferenceBackend for GpuBackend
Source§fn embed(&self, _text: &str) -> Result<Vec<f32>>
fn embed(&self, _text: &str) -> Result<Vec<f32>>
Produce a single embedding vector for
text. Read moreSource§fn chat(&self, _prompt: &str) -> Result<String>
fn chat(&self, _prompt: &str) -> Result<String>
Generate a chat completion for
prompt. Default system prompt
is None (implementor decides); use a concrete backend’s API
for system-prompt support. Read moreSource§fn attested_weights(&self) -> Option<AttestedWeights>
fn attested_weights(&self) -> Option<AttestedWeights>
Return the loaded model’s SHA-256 + optional signature for
issue #654 supply-chain attestation.
None if the backend
has no on-disk weights to attest (e.g. a network-only client).Auto Trait Implementations§
impl Freeze for GpuBackend
impl RefUnwindSafe for GpuBackend
impl Send for GpuBackend
impl Sync for GpuBackend
impl Unpin for GpuBackend
impl UnsafeUnpin for GpuBackend
impl UnwindSafe for GpuBackend
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
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 more