pub struct Pending<'a> { /* private fields */ }Implementations§
Source§impl Pending<'_>
impl Pending<'_>
pub fn batch(&self) -> &Batch
pub fn messages_reached(&self) -> usize
pub fn accepts_id(&self, id: &Id) -> bool
Sourcepub fn holds(&self, id: &Id) -> bool
pub fn holds(&self, id: &Id) -> bool
Whether an answer is held for a question that has not been reached.
pub fn check(&self, id: &Id, raw: RawAnswer) -> Result<Answer, CheckError>
Source§impl<'a> Pending<'a>
impl<'a> Pending<'a>
pub fn answer( self, incoming: RawAnswers, ) -> Result<Interview<'a>, AnswerError<'a>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Pending<'a>
impl<'a> !UnwindSafe for Pending<'a>
impl<'a> Freeze for Pending<'a>
impl<'a> Send for Pending<'a>
impl<'a> Sync for Pending<'a>
impl<'a> Unpin for Pending<'a>
impl<'a> UnsafeUnpin for Pending<'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