macro_rules! path_request {
($name:ident, $options:ty) => {
#[doc = concat!("use ", stringify!(qubit_fs), "::spi::", stringify!($name), ";")]
#[doc = concat!("fn inspect_request(request: &", stringify!($name), "<'_>) {")]
#[must_use]
pub struct $name<'a> {
path: &'a crate::path::Path,
options: $options,
}
impl<'a> $name<'a> {
#[inline]
pub(crate) const fn new(path: &'a crate::path::Path, options: $options) -> Self {
Self { path, options }
}
#[inline]
#[must_use]
pub const fn path(&self) -> &'a crate::path::Path {
self.path
}
#[inline]
#[must_use]
pub const fn options(&self) -> &$options {
&self.options
}
}
};
}
pub(in crate::spi::request) use path_request;