pub struct CloseChannelRequest {
pub channel_id: LxChannelId,
pub force_close: bool,
pub maybe_counterparty: Option<NodePk>,
}Fields§
§channel_id: LxChannelIdThe id of the channel we want to close.
force_close: boolSet to true if the channel should be force closed (unilateral). Set to false if the channel should be cooperatively closed (bilateral).
maybe_counterparty: Option<NodePk>The NodePk of our counterparty.
If set to None, the counterparty’s NodePk will be determined by
calling list_channels. Setting this to Some allows
close_channel to avoid this relatively expensive Vec allocation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CloseChannelRequest
impl<'de> Deserialize<'de> for CloseChannelRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CloseChannelRequest
impl RefUnwindSafe for CloseChannelRequest
impl Send for CloseChannelRequest
impl Sync for CloseChannelRequest
impl Unpin for CloseChannelRequest
impl UnsafeUnpin for CloseChannelRequest
impl UnwindSafe for CloseChannelRequest
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