pub struct AsyncAdapter;Available on crate feature
async only.Expand description
Implementations§
Source§impl AsyncAdapter
impl AsyncAdapter
Sourcepub fn from_name(name: &str) -> Result<AdapterInitFuture, FMError>
pub fn from_name(name: &str) -> Result<AdapterInitFuture, FMError>
Async version of SystemLanguageModel.Adapter init(name:).
Loads the named adapter asynchronously, returning a ready-to-use
Adapter handle.
§Errors
Returns an FMError::AdapterInvalidName if the adapter is not found
or the name contains a NUL byte.
Sourcepub fn compatibility(name: &str) -> Result<AdapterCompatibilityFuture, FMError>
pub fn compatibility(name: &str) -> Result<AdapterCompatibilityFuture, FMError>
Async version of SystemLanguageModel.Adapter.compatibility(for:).
Returns the list of compatible adapter identifiers for the given logical adapter name.
§Errors
Returns an FMError::AdapterCompatibleNotFound on failure.
Sourcepub fn compile(adapter: &Adapter) -> CompileAdapterFuture ⓘ
pub fn compile(adapter: &Adapter) -> CompileAdapterFuture ⓘ
Async version of SystemLanguageModel.Adapter.compile().
Auto Trait Implementations§
impl Freeze for AsyncAdapter
impl RefUnwindSafe for AsyncAdapter
impl Send for AsyncAdapter
impl Sync for AsyncAdapter
impl Unpin for AsyncAdapter
impl UnsafeUnpin for AsyncAdapter
impl UnwindSafe for AsyncAdapter
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