Struct RelayedAnswer
#[non_exhaustive]pub struct RelayedAnswer {
pub run: u64,
pub id: u64,
pub answer: Answer,
}Expand description
The answer to one ask (Relay::answer), naming it.
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 ask’s run (RelayedAsk::run).
id: u64The ask’s number (RelayedAsk::id).
answer: AnswerWhat it got.
Implementations§
§impl RelayedAnswer
impl RelayedAnswer
pub fn to(ask: &RelayedAsk, answer: Answer) -> RelayedAnswer
pub fn to(ask: &RelayedAsk, answer: Answer) -> RelayedAnswer
The answer answer to ask.
Trait Implementations§
§impl Clone for RelayedAnswer
impl Clone for RelayedAnswer
§fn clone(&self) -> RelayedAnswer
fn clone(&self) -> RelayedAnswer
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 RelayedAnswer
impl Debug for RelayedAnswer
§impl PartialEq for RelayedAnswer
impl PartialEq for RelayedAnswer
impl Eq for RelayedAnswer
impl StructuralPartialEq for RelayedAnswer
Auto Trait Implementations§
impl Freeze for RelayedAnswer
impl RefUnwindSafe for RelayedAnswer
impl Send for RelayedAnswer
impl Sync for RelayedAnswer
impl Unpin for RelayedAnswer
impl UnsafeUnpin for RelayedAnswer
impl UnwindSafe for RelayedAnswer
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