pub enum ContextFlag {
None,
SignOnly,
VerifyOnly,
Full,
}
Expand description
Flags used to determine the capabilities of a Secp256k1
object;
the more capabilities, the more expensive it is to create.
Variants§
None
Can neither sign nor verify signatures (cheapest to create, useful for cases not involving signatures, such as creating keys from slices)
SignOnly
Can sign but not verify signatures
VerifyOnly
Can verify but not create signatures
Full
Can verify and create signatures
Trait Implementations§
Source§impl Clone for ContextFlag
impl Clone for ContextFlag
Source§fn clone(&self) -> ContextFlag
fn clone(&self) -> ContextFlag
Returns a copy 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 ContextFlag
impl Debug for ContextFlag
Source§impl Display for ContextFlag
impl Display for ContextFlag
Source§impl PartialEq for ContextFlag
impl PartialEq for ContextFlag
impl Copy for ContextFlag
impl Eq for ContextFlag
impl StructuralPartialEq for ContextFlag
Auto Trait Implementations§
impl Freeze for ContextFlag
impl RefUnwindSafe for ContextFlag
impl Send for ContextFlag
impl Sync for ContextFlag
impl Unpin for ContextFlag
impl UnwindSafe for ContextFlag
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)