pub struct ThreadsClient<'a, T = ()> { /* private fields */ }Expand description
Client for threads API.
Implementations§
Source§impl<T: Default + Send + Sync> ThreadsClient<'_, T>
impl<T: Default + Send + Sync> ThreadsClient<'_, T>
Sourcepub fn builder(&self) -> ThreadRequestBuilder
pub fn builder(&self) -> ThreadRequestBuilder
Start building a new thread request.
Sourcepub async fn create(
&self,
builder: ThreadRequestBuilder,
) -> Result<ThreadObject>
pub async fn create( &self, builder: ThreadRequestBuilder, ) -> Result<ThreadObject>
Create a thread using the provided builder.
Trait Implementations§
Source§impl<'a, T: Clone> Clone for ThreadsClient<'a, T>
impl<'a, T: Clone> Clone for ThreadsClient<'a, T>
Source§fn clone(&self) -> ThreadsClient<'a, T>
fn clone(&self) -> ThreadsClient<'a, T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, T: Debug> Debug for ThreadsClient<'a, T>
impl<'a, T: Debug> Debug for ThreadsClient<'a, T>
impl<'a, T: Copy> Copy for ThreadsClient<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ThreadsClient<'a, T>
impl<'a, T = ()> !RefUnwindSafe for ThreadsClient<'a, T>
impl<'a, T> Send for ThreadsClient<'a, T>
impl<'a, T> Sync for ThreadsClient<'a, T>
impl<'a, T> Unpin for ThreadsClient<'a, T>
impl<'a, T = ()> !UnwindSafe for ThreadsClient<'a, T>
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