pub struct InputRound { /* private fields */ }Expand description
What a retry carried back: the client’s answers and the server’s state.
Built by the dispatcher, once the state has been opened, and handed to the handler through its context. A first round has neither.
Implementations§
Source§impl InputRound
impl InputRound
Sourcepub fn response(&self, key: &str) -> Option<JsonObject>
pub fn response(&self, key: &str) -> Option<JsonObject>
The client’s answer under key, if it sent one.
Sourcepub const fn has_responses(&self) -> bool
pub const fn has_responses(&self) -> bool
Whether this is a retry carrying any answers at all.
Trait Implementations§
Source§impl Clone for InputRound
impl Clone for InputRound
Source§impl Debug for InputRound
impl Debug for InputRound
Auto Trait Implementations§
impl Freeze for InputRound
impl RefUnwindSafe for InputRound
impl Send for InputRound
impl Sync for InputRound
impl Unpin for InputRound
impl UnsafeUnpin for InputRound
impl UnwindSafe for InputRound
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