pub struct ChannelPolicy {
pub min_expiry_in_seconds: u64,
pub min_capacity: u64,
pub max_amount_per_output: Option<u64>,
}Expand description
Funding-time validation thresholds for a given unit, returned by
SpilmanHost::get_channel_policy.
Fields§
§min_expiry_in_seconds: u64Minimum seconds between now and the channel expiry timestamp.
min_capacity: u64Minimum channel capacity (in the unit’s base denomination).
max_amount_per_output: Option<u64>Optional cap on the largest single proof denomination.
Trait Implementations§
Source§impl Clone for ChannelPolicy
impl Clone for ChannelPolicy
Source§fn clone(&self) -> ChannelPolicy
fn clone(&self) -> ChannelPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChannelPolicy
impl RefUnwindSafe for ChannelPolicy
impl Send for ChannelPolicy
impl Sync for ChannelPolicy
impl Unpin for ChannelPolicy
impl UnsafeUnpin for ChannelPolicy
impl UnwindSafe for ChannelPolicy
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