#[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§
Source§impl RelayedAnswer
impl RelayedAnswer
Sourcepub fn to(ask: &RelayedAsk, answer: Answer) -> RelayedAnswer
pub fn to(ask: &RelayedAsk, answer: Answer) -> RelayedAnswer
The answer answer to ask.
Trait Implementations§
Source§impl Clone for RelayedAnswer
impl Clone for RelayedAnswer
Source§impl Debug for RelayedAnswer
impl Debug for RelayedAnswer
impl Eq for RelayedAnswer
Source§impl PartialEq for RelayedAnswer
impl PartialEq for RelayedAnswer
impl StructuralPartialEq for RelayedAnswer
Auto Trait Implementations§
impl Forget for RelayedAnswer
impl Freeze for RelayedAnswer
impl Move 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