Struct RelayedAsk
#[non_exhaustive]pub struct RelayedAsk {
pub run: u64,
pub id: u64,
pub kind: String,
pub version: u32,
pub deadline: Duration,
pub input: String,
pub value: String,
}Expand description
A request asked of another process (Relay::answer): its input and
the value so far, as text, with the time the asker waits.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.run: u64The asking process’s run: it changes when that process starts
again. With RelayedAsk::id, names the ask.
id: u64The ask’s number in its run; never reused while the run lasts.
kind: StringIts point’s id.
version: u32Its point’s version on the asking side.
deadline: DurationHow long the asker waits for the answer, counted from when it sent the ask: the far side counts it from when it got the ask (clocks of two machines are not compared). Past it, both sides hold the ask refused.
input: StringIts input, written by its point’s codec.
value: StringThe value the asking side’s listeners left before the far side’s turn, written by its point’s codec.
Implementations§
Trait Implementations§
§impl Clone for RelayedAsk
impl Clone for RelayedAsk
§fn clone(&self) -> RelayedAsk
fn clone(&self) -> RelayedAsk
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for RelayedAsk
impl Debug for RelayedAsk
§impl PartialEq for RelayedAsk
impl PartialEq for RelayedAsk
impl Eq for RelayedAsk
impl StructuralPartialEq for RelayedAsk
Auto Trait Implementations§
impl Freeze for RelayedAsk
impl RefUnwindSafe for RelayedAsk
impl Send for RelayedAsk
impl Sync for RelayedAsk
impl Unpin for RelayedAsk
impl UnsafeUnpin for RelayedAsk
impl UnwindSafe for RelayedAsk
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