pub enum SignOutputs {
All,
None,
Single,
}Expand description
Specifies which outputs to sign in a transaction signature.
Variants§
All
Sign all outputs (SIGHASH_ALL).
None
Sign no outputs (SIGHASH_NONE).
Single
Sign only the output at the same index as the input (SIGHASH_SINGLE).
Implementations§
Source§impl SignOutputs
impl SignOutputs
Sourcepub fn to_sighash_flag(self) -> u32
pub fn to_sighash_flag(self) -> u32
Converts to the sighash flag value.
Trait Implementations§
Source§impl Clone for SignOutputs
impl Clone for SignOutputs
Source§fn clone(&self) -> SignOutputs
fn clone(&self) -> SignOutputs
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 SignOutputs
impl Debug for SignOutputs
Source§impl PartialEq for SignOutputs
impl PartialEq for SignOutputs
impl Copy for SignOutputs
impl Eq for SignOutputs
impl StructuralPartialEq for SignOutputs
Auto Trait Implementations§
impl Freeze for SignOutputs
impl RefUnwindSafe for SignOutputs
impl Send for SignOutputs
impl Sync for SignOutputs
impl Unpin for SignOutputs
impl UnsafeUnpin for SignOutputs
impl UnwindSafe for SignOutputs
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