pub enum JsonRpcMethodEnum {
Lsps0ListProtocols(Lsps0ListProtocols),
Lsps1Info(Lsps1Info),
Lsps1Order(Lsps1Order),
Lsp2GetVersions(Lsps2GetVersions),
Lsps2GetInfo(Lsps2GetInfo),
Lsps2Buy(Lsps2Buy),
}Variants§
Lsps0ListProtocols(Lsps0ListProtocols)
Lsps1Info(Lsps1Info)
Lsps1Order(Lsps1Order)
Lsp2GetVersions(Lsps2GetVersions)
Lsps2GetInfo(Lsps2GetInfo)
Lsps2Buy(Lsps2Buy)
Implementations§
Source§impl JsonRpcMethodEnum
impl JsonRpcMethodEnum
pub fn from_method_name(value: &str) -> Result<JsonRpcMethodEnum, LspsError>
pub fn ref_erase(&self) -> &dyn JsonRpcMethodErased
Trait Implementations§
Source§impl<'a> JsonRpcMethodUnerased<'a, Vec<u8>, Vec<u8>, Vec<u8>> for JsonRpcMethodEnum
impl<'a> JsonRpcMethodUnerased<'a, Vec<u8>, Vec<u8>, Vec<u8>> for JsonRpcMethodEnum
fn name(&self) -> &str
fn create_request( &self, params: Vec<u8>, json_rpc_id: String, ) -> Result<JsonRpcRequest<Vec<u8>>, Error>
fn parse_json_response_str( &self, json_str: &str, ) -> Result<JsonRpcResponse<Vec<u8>, Vec<u8>>, Error>
fn parse_json_response_value( &self, json_value: Value, ) -> Result<JsonRpcResponse<Vec<u8>, Vec<u8>>, Error>
Auto Trait Implementations§
impl Freeze for JsonRpcMethodEnum
impl RefUnwindSafe for JsonRpcMethodEnum
impl Send for JsonRpcMethodEnum
impl Sync for JsonRpcMethodEnum
impl Unpin for JsonRpcMethodEnum
impl UnwindSafe for JsonRpcMethodEnum
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Downcast for T
impl<T> Downcast for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request