pub struct ReplicatedTextSelectionRequest { /* private fields */ }Expand description
Caller choices resolved while selecting one replicated text realization.
Implementations§
Source§impl ReplicatedTextSelectionRequest
impl ReplicatedTextSelectionRequest
Sourcepub fn new(residency: LayerWeightResidency, state: CacheResidencyPolicy) -> Self
pub fn new(residency: LayerWeightResidency, state: CacheResidencyPolicy) -> Self
Creates a replicated request with fail-closed optional facilities.
Sourcepub const fn with_topology(self, topology: ParallelTopology) -> Self
pub const fn with_topology(self, topology: ParallelTopology) -> Self
Sets the requested topology.
Sourcepub const fn with_quantization(self, quantization: QuantizationRequest) -> Self
pub const fn with_quantization(self, quantization: QuantizationRequest) -> Self
Sets the optional load-time transform.
Sourcepub const fn with_session(self, session: SessionCapabilities) -> Self
pub const fn with_session(self, session: SessionCapabilities) -> Self
Sets requested session facilities.
Sourcepub const fn with_prompt_cache(self, required: bool) -> Self
pub const fn with_prompt_cache(self, required: bool) -> Self
Requests prompt-cache persistence.
Sourcepub const fn with_exact_completion(self, required: bool) -> Self
pub const fn with_exact_completion(self, required: bool) -> Self
Requests exact completion ownership.
Sourcepub const fn topology(&self) -> Option<ParallelTopology>
pub const fn topology(&self) -> Option<ParallelTopology>
Returns the requested topology, where None means replicated.
Sourcepub const fn residency(&self) -> LayerWeightResidency
pub const fn residency(&self) -> LayerWeightResidency
Returns the requested weight residency.
Sourcepub const fn state(&self) -> &CacheResidencyPolicy
pub const fn state(&self) -> &CacheResidencyPolicy
Returns the requested state policy.
Sourcepub const fn quantization(&self) -> Option<QuantizationRequest>
pub const fn quantization(&self) -> Option<QuantizationRequest>
Returns the requested transform.
Sourcepub const fn session(&self) -> SessionCapabilities
pub const fn session(&self) -> SessionCapabilities
Returns requested session facilities.
Sourcepub const fn prompt_cache(&self) -> bool
pub const fn prompt_cache(&self) -> bool
Returns whether prompt-cache persistence is requested.
Sourcepub const fn exact_completion(&self) -> bool
pub const fn exact_completion(&self) -> bool
Returns whether exact completion ownership is requested.
Trait Implementations§
Source§impl Clone for ReplicatedTextSelectionRequest
impl Clone for ReplicatedTextSelectionRequest
Source§fn clone(&self) -> ReplicatedTextSelectionRequest
fn clone(&self) -> ReplicatedTextSelectionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for ReplicatedTextSelectionRequest
impl StructuralPartialEq for ReplicatedTextSelectionRequest
Auto Trait Implementations§
impl Freeze for ReplicatedTextSelectionRequest
impl RefUnwindSafe for ReplicatedTextSelectionRequest
impl Send for ReplicatedTextSelectionRequest
impl Sync for ReplicatedTextSelectionRequest
impl Unpin for ReplicatedTextSelectionRequest
impl UnsafeUnpin for ReplicatedTextSelectionRequest
impl UnwindSafe for ReplicatedTextSelectionRequest
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