pub struct MethodRef { /* private fields */ }Expand description
A fully qualified Plexus method — the activation namespace and the method name, kept as separate fields because the transports need them differently:
| Transport | Uses |
|---|---|
| WebSocket JSON-RPC | "{namespace}.{method}" as the params.method of a {hub}.call subscription |
| REST + SSE | POST /rest/{namespace}/{method} |
| in-process | namespace selects the activation, method is passed to Activation::call |
A pre-joined &str would force every transport to re-split it, and a
mis-split is silent. The generated client emits MethodRef::new(..) as a
const, so this costs nothing at the call site.
Implementations§
Trait Implementations§
impl Copy for MethodRef
impl Eq for MethodRef
impl StructuralPartialEq for MethodRef
Auto Trait Implementations§
impl Freeze for MethodRef
impl RefUnwindSafe for MethodRef
impl Send for MethodRef
impl Sync for MethodRef
impl Unpin for MethodRef
impl UnsafeUnpin for MethodRef
impl UnwindSafe for MethodRef
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