pub enum ProviderExecutionMode {
Cooperative,
Blocking,
Remote,
}Expand description
Where provider work executes.
Variants§
Cooperative
Short work that cooperatively checks crate::ExecutionControl.
Blocking
CPU-heavy or blocking local work. The registry runs it on its bounded blocking pool.
Remote
A genuinely asynchronous remote transport implemented by
EmbeddingProvider::embed_async.
Trait Implementations§
Source§impl Clone for ProviderExecutionMode
impl Clone for ProviderExecutionMode
Source§fn clone(&self) -> ProviderExecutionMode
fn clone(&self) -> ProviderExecutionMode
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 Copy for ProviderExecutionMode
Source§impl Debug for ProviderExecutionMode
impl Debug for ProviderExecutionMode
Source§impl Default for ProviderExecutionMode
impl Default for ProviderExecutionMode
Source§fn default() -> ProviderExecutionMode
fn default() -> ProviderExecutionMode
Returns the “default value” for a type. Read more
impl Eq for ProviderExecutionMode
Source§impl PartialEq for ProviderExecutionMode
impl PartialEq for ProviderExecutionMode
impl StructuralPartialEq for ProviderExecutionMode
Auto Trait Implementations§
impl Freeze for ProviderExecutionMode
impl RefUnwindSafe for ProviderExecutionMode
impl Send for ProviderExecutionMode
impl Sync for ProviderExecutionMode
impl Unpin for ProviderExecutionMode
impl UnsafeUnpin for ProviderExecutionMode
impl UnwindSafe for ProviderExecutionMode
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<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