pub struct AfterInferenceContext<'s, 'a> { /* private fields */ }Implementations§
Source§impl<'s, 'a> AfterInferenceContext<'s, 'a>
impl<'s, 'a> AfterInferenceContext<'s, 'a>
pub fn new(step: &'s mut StepContext<'a>) -> Self
Source§impl<'s, 'a> AfterInferenceContext<'s, 'a>
impl<'s, 'a> AfterInferenceContext<'s, 'a>
pub fn response_opt(&self) -> Option<&StreamResult>
pub fn response(&self) -> &StreamResult
pub fn inference_error(&self) -> Option<&InferenceError>
Sourcepub fn request_termination(&mut self, reason: TerminationReason)
pub fn request_termination(&mut self, reason: TerminationReason)
Request run termination with a specific reason after inference has completed.
Trait Implementations§
Source§impl<'s, 'a> PhaseContext for AfterInferenceContext<'s, 'a>
impl<'s, 'a> PhaseContext for AfterInferenceContext<'s, 'a>
Auto Trait Implementations§
impl<'s, 'a> Freeze for AfterInferenceContext<'s, 'a>
impl<'s, 'a> !RefUnwindSafe for AfterInferenceContext<'s, 'a>
impl<'s, 'a> Send for AfterInferenceContext<'s, 'a>
impl<'s, 'a> !Sync for AfterInferenceContext<'s, 'a>
impl<'s, 'a> Unpin for AfterInferenceContext<'s, 'a>
impl<'s, 'a> UnsafeUnpin for AfterInferenceContext<'s, 'a>
impl<'s, 'a> !UnwindSafe for AfterInferenceContext<'s, '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