pub struct JsonRpcProgramBuilder;Expand description
Constructs neutral JSON-RPC programs.
Implementations§
Source§impl JsonRpcProgramBuilder
impl JsonRpcProgramBuilder
Sourcepub fn methods(&self) -> JsonRpcProgram<Empty>
pub fn methods(&self) -> JsonRpcProgram<Empty>
Starts an empty, uninterpreted JSON-RPC program.
Sourcepub fn op<Handler>(&self, handler: Handler) -> Operation<Handler>
pub fn op<Handler>(&self, handler: Handler) -> Operation<Handler>
Wraps a first-order handler operation in a neutral declaration.
Sourcepub fn program<Program>(
&self,
program: Program,
) -> JsonRpcProgram<Named<Program>>
pub fn program<Program>( &self, program: Program, ) -> JsonRpcProgram<Named<Program>>
Includes a named JSON-RPC program in another program.
Trait Implementations§
Source§impl Debug for JsonRpcProgramBuilder
impl Debug for JsonRpcProgramBuilder
Source§impl Default for JsonRpcProgramBuilder
impl Default for JsonRpcProgramBuilder
Source§fn default() -> JsonRpcProgramBuilder
fn default() -> JsonRpcProgramBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JsonRpcProgramBuilder
impl RefUnwindSafe for JsonRpcProgramBuilder
impl Send for JsonRpcProgramBuilder
impl Sync for JsonRpcProgramBuilder
impl Unpin for JsonRpcProgramBuilder
impl UnsafeUnpin for JsonRpcProgramBuilder
impl UnwindSafe for JsonRpcProgramBuilder
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
Source§impl<This> JsonRpcProgramExt<This> for This
impl<This> JsonRpcProgramExt<This> for This
Source§fn compile_jsonrpc<Program>(
&self,
program: Program,
) -> <Program as JsonRpcProgramAlg<This>>::Methodswhere
Program: JsonRpcProgramAlg<This>,
fn compile_jsonrpc<Program>(
&self,
program: Program,
) -> <Program as JsonRpcProgramAlg<This>>::Methodswhere
Program: JsonRpcProgramAlg<This>,
Compiles a named JSON-RPC program with this interpreter.