pub struct SessionBuildRejection {
pub error: SessionError,
pub state: ConversationState,
pub runner: Arc<TurnRunner>,
pub options: TurnRunOptions,
pub config: SessionConfig,
}Expand description
Returned by Session::new when the supplied state is not idle.
A by-value constructor that rejects hands back all the inputs it
consumed, not only the state: the caller keeps its ConversationState, its
assembled runner and options, and its config for a later attempt.
Every field is cheap to move back — runner is an Arc, options and
config are plain values.
Fields§
§error: SessionErrorWhy construction was rejected.
state: ConversationStateThe state, returned by value.
runner: Arc<TurnRunner>The assembled runner, returned by value.
options: TurnRunOptionsThe assembled run options, returned by value.
config: SessionConfigThe session configuration, returned by value.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SessionBuildRejection
impl !UnwindSafe for SessionBuildRejection
impl Freeze for SessionBuildRejection
impl Send for SessionBuildRejection
impl Sync for SessionBuildRejection
impl Unpin for SessionBuildRejection
impl UnsafeUnpin for SessionBuildRejection
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