pub struct BoxedTextCompletionSession { /* private fields */ }
Expand description
A boxed TextCompletionSession
.
Trait Implementations§
Source§impl Clone for BoxedTextCompletionSession
impl Clone for BoxedTextCompletionSession
Source§impl TextCompletionSession for BoxedTextCompletionSession
impl TextCompletionSession for BoxedTextCompletionSession
Source§type Error = Box<dyn Error + Send + Sync>
type Error = Box<dyn Error + Send + Sync>
The type of error the session may return during operations.
Source§fn write_to(&self, into: &mut Vec<u8>) -> Result<(), Self::Error>
fn write_to(&self, into: &mut Vec<u8>) -> Result<(), Self::Error>
Serialize the session into bytes. This method is identical to
TextCompletionSession::to_bytes
except it can re-use an existing Vec
buffer.Auto Trait Implementations§
impl Freeze for BoxedTextCompletionSession
impl !RefUnwindSafe for BoxedTextCompletionSession
impl Send for BoxedTextCompletionSession
impl Sync for BoxedTextCompletionSession
impl Unpin for BoxedTextCompletionSession
impl !UnwindSafe for BoxedTextCompletionSession
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