Enum miniscript::policy::concrete::DescriptorCtx
source · pub enum DescriptorCtx<Pk> {
Bare,
Sh,
Wsh,
ShWsh,
Tr(Option<Pk>),
}
Expand description
Descriptor context for Policy
compilation into a Descriptor
.
Variants§
Bare
See docs for Descriptor::Bare
.
Sh
See docs for Descriptor::Sh
.
Wsh
See docs for Descriptor::Wsh
.
ShWsh
See docs for Descriptor::Wsh
.
Tr(Option<Pk>)
Descriptor::Tr
where the Option<Pk>
corresponds to the internal key if no
internal key can be inferred from the given policy.
Auto Trait Implementations§
impl<Pk> RefUnwindSafe for DescriptorCtx<Pk>where Pk: RefUnwindSafe,
impl<Pk> Send for DescriptorCtx<Pk>where Pk: Send,
impl<Pk> Sync for DescriptorCtx<Pk>where Pk: Sync,
impl<Pk> Unpin for DescriptorCtx<Pk>where Pk: Unpin,
impl<Pk> UnwindSafe for DescriptorCtx<Pk>where Pk: UnwindSafe,
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