pub struct CallOptions<'a> {
pub timeout: Duration,
pub on_chunk: Option<&'a mut (dyn FnMut(&str) + Send)>,
}Expand description
Optional parameters for EventsResource::call_hot.
Fields§
§timeout: DurationBounds the wait for the run result.
on_chunk: Option<&'a mut (dyn FnMut(&str) + Send)>Receives streamed text chunks from the run.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for CallOptions<'a>
impl<'a> !Sync for CallOptions<'a>
impl<'a> !UnwindSafe for CallOptions<'a>
impl<'a> Freeze for CallOptions<'a>
impl<'a> Send for CallOptions<'a>
impl<'a> Unpin for CallOptions<'a>
impl<'a> UnsafeUnpin for CallOptions<'a>
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