pub struct CallPart<'id> { /* private fields */ }Expand description
An open tool call of one reply. It has its id and its name, and becomes visible when it closes.
ⓘ
use rig_core::operation::{CallPart, Completion};
use rig_core::wire::Out;
// A closed call cannot be written again.
fn twice<'id>(out: &mut Out<'id, Completion>, part: CallPart<'id>) {
let _ = out.close_call(part);
out.push_arguments(&part, "{}");
}Trait Implementations§
Auto Trait Implementations§
impl<'id> Freeze for CallPart<'id>
impl<'id> RefUnwindSafe for CallPart<'id>
impl<'id> Send for CallPart<'id>
impl<'id> Sync for CallPart<'id>
impl<'id> Unpin for CallPart<'id>
impl<'id> UnsafeUnpin for CallPart<'id>
impl<'id> UnwindSafe for CallPart<'id>
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