pub enum ErrorRoad {
Mutation,
Query,
}Expand description
WHICH ROAD an error was minted for — the word an author wrote, carried for the sentence.
The two macros emit the SAME items, and that is deliberate rather than an accident waiting to be
deduplicated: what differs is which half of the line a failure belongs to, and a word that says
so is what lets a reader of a declaration know whether they are looking at a write path’s failure
or a read path’s. The day the two roads want different faces — a ToErrorCode row on one of them
— the word is already written and no declaration has to change.
Variants§
Mutation
#[ingraph::mutation_error] — a declared exchange’s failure.
Query
#[ingraph::query_error] — a read-path author error.
Implementations§
Trait Implementations§
impl Copy for ErrorRoad
impl Eq for ErrorRoad
impl StructuralPartialEq for ErrorRoad
Auto Trait Implementations§
impl Freeze for ErrorRoad
impl RefUnwindSafe for ErrorRoad
impl Send for ErrorRoad
impl Sync for ErrorRoad
impl Unpin for ErrorRoad
impl UnsafeUnpin for ErrorRoad
impl UnwindSafe for ErrorRoad
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