pub struct Loading { /* private fields */ }Expand description
Implementations§
Source§impl Loading
impl Loading
Sourcepub fn question(&self) -> Option<Question>
pub fn question(&self) -> Option<Question>
The pending question, or None when the conversation is over and
finish may be called. Idempotent.
Sourcepub fn answer(&mut self, answer: Answer) -> Result<(), AnswerMismatch>
pub fn answer(&mut self, answer: Answer) -> Result<(), AnswerMismatch>
Answer the pending question and advance.
Sourcepub fn finish(self) -> Result<LoadedPlugin, Rejection>
pub fn finish(self) -> Result<LoadedPlugin, Rejection>
Conclude the conversation. Returns Rejection::Incomplete if
questions remain unanswered.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Loading
impl RefUnwindSafe for Loading
impl Send for Loading
impl Sync for Loading
impl Unpin for Loading
impl UnsafeUnpin for Loading
impl UnwindSafe for Loading
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