MCPcopy Create free account
hub / github.com/ElementsProject/lightning / subscribe_plugin_stopped

Method subscribe_plugin_stopped

cln-grpc/src/server.rs:5415–5435  ·  view source on GitHub ↗
(
        &self,
        _request : tonic::Request<pb::StreamPluginStoppedRequest>
    )

Source from the content-addressed store, hash-verified

5413 type SubscribePluginStoppedStream = NotificationStream<pb::PluginStoppedNotification>;
5414
5415 async fn subscribe_plugin_stopped(
5416 &self,
5417 _request : tonic::Request<pb::StreamPluginStoppedRequest>
5418 ) -> Result<tonic::Response<Self::SubscribePluginStoppedStream>, tonic::Status> {
5419 let receiver = self.events.subscribe();
5420 let stream = BroadcastStream::new(receiver);
5421 let boxed = Box::pin(stream);
5422
5423 let result = NotificationStream {
5424 inner : boxed,
5425 fn_filter_map : |x| {
5426 match x {
5427 Notification::PluginStopped(x) => {
5428 Some(x.into())
5429 }
5430 _ => None
5431 }
5432 }
5433 };
5434 Ok(tonic::Response::new(result))
5435 }
5436
5437
5438 type SubscribeSendPayFailureStream = NotificationStream<pb::SendPayFailureNotification>;

Callers

nothing calls this directly

Calls 1

subscribeMethod · 0.45

Tested by

no test coverage detected