Struct breez_sdk_core::BreezServer

pub struct BreezServer { /* private fields */ }

Implementations§

Trait Implementations§

§

impl FiatAPI for BreezServer

§

fn list_fiat_currencies<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<FiatCurrency>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, BreezServer: 'async_trait,

List all supported fiat currencies for which there is a known exchange rate.
§

fn fetch_fiat_rates<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Rate>, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, BreezServer: 'async_trait,

Get the live rates from the server.
source§

impl LspAPI for BreezServer

source§

fn list_lsps<'life0, 'async_trait>( &'life0 self, pubkey: String, ) -> Pin<Box<dyn Future<Output = SdkResult<Vec<LspInformation>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List LSPs available to the given pubkey
source§

fn list_used_lsps<'life0, 'async_trait>( &'life0 self, pubkey: String, ) -> Pin<Box<dyn Future<Output = SdkResult<Vec<LspInformation>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List all LSPs, active and historical, used by the given pubkey
source§

fn register_payment_notifications<'life0, 'async_trait>( &'life0 self, lsp_id: String, lsp_pubkey: Vec<u8>, webhook_url: String, webhook_url_signature: String, ) -> Pin<Box<dyn Future<Output = SdkResult<RegisterPaymentNotificationResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Register for webhook callbacks at the given webhook_url whenever a new payment is received
source§

fn unregister_payment_notifications<'life0, 'async_trait>( &'life0 self, lsp_id: String, lsp_pubkey: Vec<u8>, webhook_url: String, webhook_url_signature: String, ) -> Pin<Box<dyn Future<Output = SdkResult<RemovePaymentNotificationResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unregister for webhook callbacks for the given webhook_url
source§

fn register_payment<'life0, 'async_trait>( &'life0 self, lsp_id: String, lsp_pubkey: Vec<u8>, payment_info: PaymentInformation, ) -> Pin<Box<dyn Future<Output = SdkResult<RegisterPaymentReply>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Register a payment to open a new channel with the LSP
source§

impl SupportAPI for BreezServer

source§

fn service_health_check<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = SdkResult<ServiceHealthCheckResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn report_payment_failure<'life0, 'async_trait>( &'life0 self, node_state: NodeState, payment: Payment, lsp_id: Option<String>, comment: Option<String>, ) -> Pin<Box<dyn Future<Output = SdkResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

impl SwapperAPI for BreezServer

source§

fn create_swap<'life0, 'async_trait>( &'life0 self, hash: Vec<u8>, payer_pubkey: Vec<u8>, node_id: String, ) -> Pin<Box<dyn Future<Output = Result<Swap, SwapError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn complete_swap<'life0, 'async_trait>( &'life0 self, bolt11: String, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Any for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

§

fn type_name(&self) -> &'static str

§

impl<T> AnySync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

§

impl<T> AsAny for T
where T: Any,

§

fn as_any(&self) -> &(dyn Any + 'static)

§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

§

fn type_name(&self) -> &'static str

Gets the type name of self
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for T
where T: AsAny + ?Sized,

§

fn is<T>(&self) -> bool
where T: AsAny,

Returns true if the boxed type is the same as T. Read more
§

fn downcast_ref<T>(&self) -> Option<&T>
where T: AsAny,

Forward to the method defined on the type Any.
§

fn downcast_mut<T>(&mut self) -> Option<&mut T>
where T: AsAny,

Forward to the method defined on the type Any.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more