pub enum AsyncPaymentsRole {
Client,
Server,
}Expand description
The role of the node in an asynchronous payments context.
See https://github.com/lightning/bolts/pull/1149 for more information about the async payments protocol.
Variants§
Client
Node acts a client in an async payments context. This means that if possible, it will instruct its peers to hold HTLCs for it, so that it can go offline.
Server
Node acts as a server in an async payments context. This means that it will hold async payments HTLCs and onion messages for its peers.
Trait Implementations§
Source§impl Clone for AsyncPaymentsRole
impl Clone for AsyncPaymentsRole
Source§fn clone(&self) -> AsyncPaymentsRole
fn clone(&self) -> AsyncPaymentsRole
Returns a duplicate 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 Debug for AsyncPaymentsRole
impl Debug for AsyncPaymentsRole
impl Copy for AsyncPaymentsRole
Auto Trait Implementations§
impl Freeze for AsyncPaymentsRole
impl RefUnwindSafe for AsyncPaymentsRole
impl Send for AsyncPaymentsRole
impl Sync for AsyncPaymentsRole
impl Unpin for AsyncPaymentsRole
impl UnwindSafe for AsyncPaymentsRole
Blanket Implementations§
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