pub struct DeclineAll;Expand description
Declines everything, with a reason naming the absence.
The default when no host registered anything. Every path that asks a human gets an explicit refusal instead of hanging, timing out, or — the failure this exists to prevent — treating silence as a yes.
Trait Implementations§
Source§impl Elicitation for DeclineAll
impl Elicitation for DeclineAll
Source§fn ask<'life0, 'async_trait>(
&'life0 self,
request: ElicitRequest,
) -> Pin<Box<dyn Future<Output = ElicitOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ask<'life0, 'async_trait>(
&'life0 self,
request: ElicitRequest,
) -> Pin<Box<dyn Future<Output = ElicitOutcome> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Put
request to a human and return their answer. Read moreSource§fn ask_within<'life0, 'async_trait>(
&'life0 self,
request: ElicitRequest,
within: Option<Duration>,
) -> Pin<Box<dyn Future<Output = Option<ElicitOutcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ask_within<'life0, 'async_trait>(
&'life0 self,
request: ElicitRequest,
within: Option<Duration>,
) -> Pin<Box<dyn Future<Output = Option<ElicitOutcome>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn can_clarify(&self) -> bool
fn can_clarify(&self) -> bool
Whether a clarification asked here can reach a person. A session
whose elicitation cannot carry one is not offered
AskUserQuestion.Auto Trait Implementations§
impl Forget for DeclineAll
impl Freeze for DeclineAll
impl Move for DeclineAll
impl RefUnwindSafe for DeclineAll
impl Send for DeclineAll
impl Sync for DeclineAll
impl Unpin for DeclineAll
impl UnsafeUnpin for DeclineAll
impl UnwindSafe for DeclineAll
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