pub struct ProcedureSurrogate<P>(/* private fields */);Available on crate feature
router only.Expand description
The surrogate a Procedure value turns into inside a runtime
expression.
Captured as a &'static reference, so closures inside the expression can
hold it without borrowing a local. Serializes as the procedure’s id, so
the browser can call it back, and exposes the typed call
that runtime expressions invoke.
Implementations§
Source§impl<P: TypedProcedure> ProcedureSurrogate<P>
impl<P: TypedProcedure> ProcedureSurrogate<P>
Trait Implementations§
Source§impl<P: TypedProcedure> Serialize for ProcedureSurrogate<P>
impl<P: TypedProcedure> Serialize for ProcedureSurrogate<P>
Source§impl<P> Surrogate for &'static ProcedureSurrogate<P>
impl<P> Surrogate for &'static ProcedureSurrogate<P>
Auto Trait Implementations§
impl<P> Freeze for ProcedureSurrogate<P>where
P: Freeze,
impl<P> RefUnwindSafe for ProcedureSurrogate<P>where
P: RefUnwindSafe,
impl<P> Send for ProcedureSurrogate<P>where
P: Send,
impl<P> Sync for ProcedureSurrogate<P>where
P: Sync,
impl<P> Unpin for ProcedureSurrogate<P>where
P: Unpin,
impl<P> UnsafeUnpin for ProcedureSurrogate<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for ProcedureSurrogate<P>where
P: UnwindSafe,
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