pub struct JigMeta {
pub name: &'static str,
pub file: &'static str,
pub line: u32,
pub kind: &'static str,
pub input: &'static str,
pub is_async: bool,
pub chain: &'static [&'static str],
}Expand description
Static description of one jig.
Fields§
§name: &'static strFunction name as written in source.
file: &'static strSource file path (as seen by the compiler at expansion time).
line: u321-based line of the function declaration.
kind: &'static strOuter return-type identifier: "Request", "Response", "Branch",
"Pending", or "Other".
input: &'static strOuter first-argument type identifier: "Request", "Response", or
"Other". Combined with Self::kind this places a jig in one of three
semantic buckets: request-side (Request → Request), switching
(Request → Response/Branch) or response-side (Response → Response).
is_async: booltrue if the underlying function is async fn.
chain: &'static [&'static str]Names of jigs this function calls via .then(IDENT), in chain order.
Trait Implementations§
impl Collect for JigMeta
impl Copy for JigMeta
Auto Trait Implementations§
impl Freeze for JigMeta
impl RefUnwindSafe for JigMeta
impl Send for JigMeta
impl Sync for JigMeta
impl Unpin for JigMeta
impl UnsafeUnpin for JigMeta
impl UnwindSafe for JigMeta
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