Enum Answer
#[non_exhaustive]pub enum Answer {
Done {
value: String,
},
Refused {
listener: Option<String>,
owner: Option<String>,
reason: String,
failed: bool,
},
}Expand description
How an ask was answered (RelayedAnswer::answer).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Done
The far side’s listeners ran and none refused: the value they left, as text.
Refused
The ask was refused: by a listener of the far side (a veto, or a failure: the point is fail-closed), or by the far bus itself (an authority, a point it does not declare, relayable or at this version, an input it cannot read, the deadline gone).
Implementations§
Trait Implementations§
impl Eq for Answer
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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