pub struct PluginNodeServer {
pub tls: ServerTlsConfig,
pub stage: Arc<Stage>,
pub rpc: Arc<Mutex<LightningClient>>,
pub ctx: Context,
/* private fields */
}
Expand description
The PluginNodeServer is the interface that is exposed to client devices and is in charge of coordinating the various user-controlled entities. This includes dispatching incoming RPC calls to the JSON-RPC interface, as well as staging requests from the HSM so that they can be streamed and replied to by devices that have access to the signing keys.
Fields§
§tls: ServerTlsConfig
§stage: Arc<Stage>
§rpc: Arc<Mutex<LightningClient>>
§ctx: Context
Implementations§
Trait Implementations§
Source§impl Clone for PluginNodeServer
impl Clone for PluginNodeServer
Source§fn clone(&self) -> PluginNodeServer
fn clone(&self) -> PluginNodeServer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Node for PluginNodeServer
impl Node for PluginNodeServer
Source§type StreamCustommsgStream = ReceiverStream<Result<Custommsg, Status>>
type StreamCustommsgStream = ReceiverStream<Result<Custommsg, Status>>
Server streaming response type for the StreamCustommsg method.
Source§type StreamHsmRequestsStream = ReceiverStream<Result<HsmRequest, Status>>
type StreamHsmRequestsStream = ReceiverStream<Result<HsmRequest, Status>>
Server streaming response type for the StreamHsmRequests method.
Source§type StreamLogStream = ReceiverStream<Result<LogEntry, Status>>
type StreamLogStream = ReceiverStream<Result<LogEntry, Status>>
Server streaming response type for the StreamLog method.
Source§type StreamIncomingStream = ReceiverStream<Result<IncomingPayment, Status>>
type StreamIncomingStream = ReceiverStream<Result<IncomingPayment, Status>>
Server streaming response type for the StreamIncoming method.
Source§fn stream_custommsg<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<StreamCustommsgRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamCustommsgStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_custommsg<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<StreamCustommsgRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamCustommsgStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Listen for incoming
custommsg
messages from peers. Read moreSource§fn stream_log<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<StreamLogRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamLogStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_log<'life0, 'async_trait>(
&'life0 self,
__arg1: Request<StreamLogRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamLogStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stream the logs as they are produced by the node Read more
Source§fn stream_hsm_requests<'life0, 'async_trait>(
&'life0 self,
_request: Request<Empty>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamHsmRequestsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_hsm_requests<'life0, 'async_trait>(
&'life0 self,
_request: Request<Empty>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamHsmRequestsStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
////////////////////////////// HSM Messages //////////////////////// Read more
fn respond_hsm_request<'life0, 'async_trait>(
&'life0 self,
request: Request<HsmResponse>,
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn stream_incoming<'life0, 'async_trait>(
&'life0 self,
_req: Request<StreamIncomingFilter>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamIncomingStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream_incoming<'life0, 'async_trait>(
&'life0 self,
_req: Request<StreamIncomingFilter>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamIncomingStream>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stream incoming payments Read more
fn configure<'life0, 'async_trait>(
&'life0 self,
req: Request<GlConfig>,
) -> Pin<Box<dyn Future<Output = Result<Response<Empty>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn trampoline_pay<'life0, 'async_trait>(
&'life0 self,
r: Request<TrampolinePayRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<TrampolinePayResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for PluginNodeServer
impl !RefUnwindSafe for PluginNodeServer
impl Send for PluginNodeServer
impl Sync for PluginNodeServer
impl Unpin for PluginNodeServer
impl !UnwindSafe for PluginNodeServer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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