pub struct LandingHandler { /* private fields */ }Expand description
Handler for the landing sequence.
Orchestrates clean session exit with commit, cleanup, and handoff.
Implementations§
Source§impl LandingHandler
impl LandingHandler
Sourcepub fn new(context: LoopContext) -> Self
pub fn new(context: LoopContext) -> Self
Creates a new landing handler for the given loop context.
Sourcepub fn with_config(context: LoopContext, config: LandingConfig) -> Self
pub fn with_config(context: LoopContext, config: LandingConfig) -> Self
Creates a landing handler with custom configuration.
Sourcepub fn land(&self, prompt: &str) -> Result<LandingResult, LandingError>
pub fn land(&self, prompt: &str) -> Result<LandingResult, LandingError>
Auto Trait Implementations§
impl Freeze for LandingHandler
impl RefUnwindSafe for LandingHandler
impl Send for LandingHandler
impl Sync for LandingHandler
impl Unpin for LandingHandler
impl UnwindSafe for LandingHandler
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