Struct bitcoinrpc_server::RPCCommand
source · pub struct RPCCommand {
pub category: String,
pub name: String,
pub actor: Actor,
pub arg_names: Vec<String>,
pub unique_id: intptr_t,
}
Fields§
§category: String
§name: String
§actor: Actor
§arg_names: Vec<String>
§unique_id: intptr_t
Implementations§
source§impl RPCCommand
impl RPCCommand
sourcepub fn new(
category: String,
name: String,
actor: Actor,
args: Vec<String>,
unique_id: intptr_t
) -> Self
pub fn new( category: String, name: String, actor: Actor, args: Vec<String>, unique_id: intptr_t ) -> Self
| Constructor taking Actor callback | supporting multiple handlers. |
sourcepub fn new_from_category_and_callback(
category: &str,
fn_: RpcMethodFnType
) -> Self
pub fn new_from_category_and_callback( category: &str, fn_: RpcMethodFnType ) -> Self
| Simplified constructor taking plain | | RpcMethodFnType function pointer. |
Auto Trait Implementations§
impl RefUnwindSafe for RPCCommand
impl Send for RPCCommand
impl Sync for RPCCommand
impl Unpin for RPCCommand
impl UnwindSafe for RPCCommand
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more