pub enum Cond {
All(Vec<Cond>),
Any(Vec<Cond>),
Not(Box<Cond>),
Path(Ref, Test),
Status {
exchange: Option<usize>,
code: Option<u16>,
class: Option<u16>,
},
StreamDone {
exchange: Option<usize>,
done: bool,
},
Same(Ref, Ref),
Ran(usize),
Always,
}Variants§
All(Vec<Cond>)
Any(Vec<Cond>)
Not(Box<Cond>)
Path(Ref, Test)
Status
HTTP status: exact code, or the hundreds class (2 for 2xx).
StreamDone
The stream ended with [DONE].
Same(Ref, Ref)
Both references resolve to equal values (strings holding JSON are compared parsed).
Ran(usize)
Exchange N happened (earlier steps produced what later ones needed).
Always
Trait Implementations§
impl StructuralPartialEq for Cond
Auto Trait Implementations§
impl Forget for Cond
impl Freeze for Cond
impl RefUnwindSafe for Cond
impl Send for Cond
impl Sync for Cond
impl Unpin for Cond
impl UnsafeUnpin for Cond
impl UnwindSafe for Cond
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