pub trait NodeLspApi {
// Required methods
async fn get_new_scids(
&self,
req: &GetNewScidsRequest,
) -> Result<Scids, LspApiError>;
async fn get_network_graph(&self) -> Result<Bytes, LspApiError>;
async fn get_prob_scorer(&self) -> Result<Bytes, LspApiError>;
async fn payment_path(&self, event: &Event) -> Result<Empty, LspApiError>;
}Expand description
Defines the api that the LSP exposes to user nodes.
Required Methods§
Sourceasync fn get_new_scids(
&self,
req: &GetNewScidsRequest,
) -> Result<Scids, LspApiError>
async fn get_new_scids( &self, req: &GetNewScidsRequest, ) -> Result<Scids, LspApiError>
GET /node/v1/scids GetNewScidsRequest -> Scids
Sourceasync fn get_network_graph(&self) -> Result<Bytes, LspApiError>
async fn get_network_graph(&self) -> Result<Bytes, LspApiError>
Sourceasync fn get_prob_scorer(&self) -> Result<Bytes, LspApiError>
async fn get_prob_scorer(&self) -> Result<Bytes, LspApiError>
Sourceasync fn payment_path(&self, event: &Event) -> Result<Empty, LspApiError>
async fn payment_path(&self, event: &Event) -> Result<Empty, LspApiError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.