pub struct LeanMetaService<Req, Resp> { /* private fields */ }Expand description
Sealed descriptor for one registered MetaM service.
Req is the Rust-side type the call site supplies; Resp is the
type the typed payload decodes into on the Ok branch. The phantom
fn(Req) -> Resp keeps the marker invariant in both parameters
(matching how Lake’s emitted signature treats them).
Implementations§
Source§impl<Req, Resp> LeanMetaService<Req, Resp>
impl<Req, Resp> LeanMetaService<Req, Resp>
Sourcepub fn required_imports(&self) -> &'static [&'static str]
pub fn required_imports(&self) -> &'static [&'static str]
The .olean module names that must appear in the session’s
import list before this service can run. Callers can either
thread the list into crate::LeanCapabilities::session or
import the parent LeanRsFixture roll-up module, which
transitively imports every fixture submodule.
Trait Implementations§
Source§impl<Req: Clone, Resp: Clone> Clone for LeanMetaService<Req, Resp>
impl<Req: Clone, Resp: Clone> Clone for LeanMetaService<Req, Resp>
Source§fn clone(&self) -> LeanMetaService<Req, Resp>
fn clone(&self) -> LeanMetaService<Req, Resp>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Req, Resp> Debug for LeanMetaService<Req, Resp>
impl<Req, Resp> Debug for LeanMetaService<Req, Resp>
impl<Req: Copy, Resp: Copy> Copy for LeanMetaService<Req, Resp>
Auto Trait Implementations§
impl<Req, Resp> Freeze for LeanMetaService<Req, Resp>
impl<Req, Resp> RefUnwindSafe for LeanMetaService<Req, Resp>
impl<Req, Resp> Send for LeanMetaService<Req, Resp>
impl<Req, Resp> Sync for LeanMetaService<Req, Resp>
impl<Req, Resp> Unpin for LeanMetaService<Req, Resp>
impl<Req, Resp> UnsafeUnpin for LeanMetaService<Req, Resp>
impl<Req, Resp> UnwindSafe for LeanMetaService<Req, Resp>
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