Enum zebra_consensus::error::TransactionError
source · pub enum TransactionError {
Show 42 variants
CoinbasePosition,
CoinbaseAfterFirst,
CoinbaseHasJoinSplit,
CoinbaseHasSpend,
CoinbaseHasOutputPreHeartwood,
CoinbaseHasEnableSpendsOrchard,
CoinbaseOutputsNotDecryptable,
CoinbaseInMempool,
NonCoinbaseHasCoinbaseInput,
LockedUntilAfterBlockHeight(Height),
LockedUntilAfterBlockTime(DateTime<Utc>),
CoinbaseExpiryBlockHeight {
expiry_height: Option<Height>,
block_height: Height,
transaction_hash: Hash,
},
MaximumExpiryHeight {
expiry_height: Height,
is_coinbase: bool,
block_height: Height,
transaction_hash: Hash,
},
ExpiredTransaction {
expiry_height: Height,
block_height: Height,
transaction_hash: Hash,
},
Subsidy(SubsidyError),
WrongVersion,
UnsupportedByNetworkUpgrade(u32, NetworkUpgrade),
NoInputs,
NoOutputs,
BadBalance,
Script(Error),
SmallOrder,
Groth16(String),
MalformedGroth16(String),
Ed25519(Error),
RedJubjub(Error),
RedPallas(Error),
InternalDowncastError(String),
BothVPubsNonZero,
DisabledAddToSproutPool,
IncorrectFee,
DuplicateTransparentSpend(OutPoint),
DuplicateSproutNullifier(Nullifier),
DuplicateSaplingNullifier(Nullifier),
DuplicateOrchardNullifier(Nullifier),
NotEnoughFlags,
TransparentInputNotFound,
ValidateContextError(Box<ValidateContextError>),
ValidateMempoolLockTimeError(String),
ImmatureTransparentCoinbaseSpend {
outpoint: OutPoint,
spend_height: Height,
min_spend_height: Height,
created_height: Height,
},
UnshieldedTransparentCoinbaseSpend {
outpoint: OutPoint,
min_spend_height: Height,
},
Zip317(Error),
}
Variants§
CoinbasePosition
CoinbaseAfterFirst
CoinbaseHasJoinSplit
CoinbaseHasSpend
CoinbaseHasOutputPreHeartwood
CoinbaseHasEnableSpendsOrchard
CoinbaseOutputsNotDecryptable
CoinbaseInMempool
NonCoinbaseHasCoinbaseInput
LockedUntilAfterBlockHeight(Height)
LockedUntilAfterBlockTime(DateTime<Utc>)
CoinbaseExpiryBlockHeight
MaximumExpiryHeight
ExpiredTransaction
Subsidy(SubsidyError)
WrongVersion
UnsupportedByNetworkUpgrade(u32, NetworkUpgrade)
NoInputs
NoOutputs
BadBalance
Script(Error)
SmallOrder
Groth16(String)
MalformedGroth16(String)
Ed25519(Error)
RedJubjub(Error)
RedPallas(Error)
InternalDowncastError(String)
BothVPubsNonZero
DisabledAddToSproutPool
IncorrectFee
DuplicateTransparentSpend(OutPoint)
DuplicateSproutNullifier(Nullifier)
DuplicateSaplingNullifier(Nullifier)
DuplicateOrchardNullifier(Nullifier)
NotEnoughFlags
TransparentInputNotFound
ValidateContextError(Box<ValidateContextError>)
ValidateMempoolLockTimeError(String)
ImmatureTransparentCoinbaseSpend
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
UnshieldedTransparentCoinbaseSpend
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Zip317(Error)
Trait Implementations§
source§impl Arbitrary for TransactionError
impl Arbitrary for TransactionError
§type Parameters = (<Height as Arbitrary>::Parameters, (<Option<Height> as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters, <Hash as Arbitrary>::Parameters), (<Height as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters, <Hash as Arbitrary>::Parameters), (<Height as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters, <Hash as Arbitrary>::Parameters), (<u32 as Arbitrary>::Parameters, <NetworkUpgrade as Arbitrary>::Parameters), <String as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <OutPoint as Arbitrary>::Parameters, (<Nullifier as Arbitrary>::Parameters, <Nullifier as Arbitrary>::Parameters, <Nullifier as Arbitrary>::Parameters, (<OutPoint as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters), (<OutPoint as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters)))
type Parameters = (<Height as Arbitrary>::Parameters, (<Option<Height> as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters, <Hash as Arbitrary>::Parameters), (<Height as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters, <Hash as Arbitrary>::Parameters), (<Height as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters, <Hash as Arbitrary>::Parameters), (<u32 as Arbitrary>::Parameters, <NetworkUpgrade as Arbitrary>::Parameters), <String as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <OutPoint as Arbitrary>::Parameters, (<Nullifier as Arbitrary>::Parameters, <Nullifier as Arbitrary>::Parameters, <Nullifier as Arbitrary>::Parameters, (<OutPoint as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters), (<OutPoint as Arbitrary>::Parameters, <Height as Arbitrary>::Parameters)))
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = TupleUnion<((u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<TupleUnion<((u32, Arc<Map<<Height as Arbitrary>::Strategy, fn(_: Height) -> TransactionError>>), (u32, Arc<Map<(<Option<Height> as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy, <Hash as Arbitrary>::Strategy), fn(_: (Option<Height>, Height, Hash)) -> TransactionError>>), (u32, Arc<Map<(<Height as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy, <Hash as Arbitrary>::Strategy), fn(_: (Height, bool, Height, Hash)) -> TransactionError>>), (u32, Arc<Map<(<Height as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy, <Hash as Arbitrary>::Strategy), fn(_: (Height, Height, Hash)) -> TransactionError>>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<Map<(<u32 as Arbitrary>::Strategy, <NetworkUpgrade as Arbitrary>::Strategy), fn(_: (u32, NetworkUpgrade)) -> TransactionError>>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<TupleUnion<((u32, Arc<fn() -> TransactionError>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(_: String) -> TransactionError>>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(_: String) -> TransactionError>>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(_: String) -> TransactionError>>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<Map<<OutPoint as Arbitrary>::Strategy, fn(_: OutPoint) -> TransactionError>>), (u32, Arc<Map<<Nullifier as Arbitrary>::Strategy, fn(_: Nullifier) -> TransactionError>>), (u32, Arc<TupleUnion<((u32, Arc<Map<<Nullifier as Arbitrary>::Strategy, fn(_: Nullifier) -> TransactionError>>), (u32, Arc<Map<<Nullifier as Arbitrary>::Strategy, fn(_: Nullifier) -> TransactionError>>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<Map<(<OutPoint as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy), fn(_: (OutPoint, Height, Height, Height)) -> TransactionError>>), (u32, Arc<Map<(<OutPoint as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy), fn(_: (OutPoint, Height)) -> TransactionError>>))>>))>>))>>))>
type Strategy = TupleUnion<((u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<TupleUnion<((u32, Arc<Map<<Height as Arbitrary>::Strategy, fn(_: Height) -> TransactionError>>), (u32, Arc<Map<(<Option<Height> as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy, <Hash as Arbitrary>::Strategy), fn(_: (Option<Height>, Height, Hash)) -> TransactionError>>), (u32, Arc<Map<(<Height as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy, <Hash as Arbitrary>::Strategy), fn(_: (Height, bool, Height, Hash)) -> TransactionError>>), (u32, Arc<Map<(<Height as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy, <Hash as Arbitrary>::Strategy), fn(_: (Height, Height, Hash)) -> TransactionError>>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<Map<(<u32 as Arbitrary>::Strategy, <NetworkUpgrade as Arbitrary>::Strategy), fn(_: (u32, NetworkUpgrade)) -> TransactionError>>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<TupleUnion<((u32, Arc<fn() -> TransactionError>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(_: String) -> TransactionError>>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(_: String) -> TransactionError>>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(_: String) -> TransactionError>>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<Map<<OutPoint as Arbitrary>::Strategy, fn(_: OutPoint) -> TransactionError>>), (u32, Arc<Map<<Nullifier as Arbitrary>::Strategy, fn(_: Nullifier) -> TransactionError>>), (u32, Arc<TupleUnion<((u32, Arc<Map<<Nullifier as Arbitrary>::Strategy, fn(_: Nullifier) -> TransactionError>>), (u32, Arc<Map<<Nullifier as Arbitrary>::Strategy, fn(_: Nullifier) -> TransactionError>>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<fn() -> TransactionError>), (u32, Arc<Map<(<OutPoint as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy), fn(_: (OutPoint, Height, Height, Height)) -> TransactionError>>), (u32, Arc<Map<(<OutPoint as Arbitrary>::Strategy, <Height as Arbitrary>::Strategy), fn(_: (OutPoint, Height)) -> TransactionError>>))>>))>>))>>))>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for TransactionError
impl Clone for TransactionError
source§fn clone(&self) -> TransactionError
fn clone(&self) -> TransactionError
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 TransactionError
impl Debug for TransactionError
source§impl Display for TransactionError
impl Display for TransactionError
source§impl Error for TransactionError
impl Error for TransactionError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for TransactionError
impl From<Error> for TransactionError
source§impl From<Error> for TransactionError
impl From<Error> for TransactionError
source§impl From<Error> for TransactionError
impl From<Error> for TransactionError
source§impl From<SubsidyError> for TransactionError
impl From<SubsidyError> for TransactionError
source§fn from(source: SubsidyError) -> Self
fn from(source: SubsidyError) -> Self
Converts to this type from the input type.
source§impl From<TransactionError> for BlockError
impl From<TransactionError> for BlockError
source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
Converts to this type from the input type.
source§impl From<TransactionError> for VerifyBlockError
impl From<TransactionError> for VerifyBlockError
source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
Converts to this type from the input type.
source§impl From<ValidateContextError> for TransactionError
impl From<ValidateContextError> for TransactionError
source§fn from(err: ValidateContextError) -> Self
fn from(err: ValidateContextError) -> Self
Converts to this type from the input type.
source§impl PartialEq for TransactionError
impl PartialEq for TransactionError
source§fn eq(&self, other: &TransactionError) -> bool
fn eq(&self, other: &TransactionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TransactionError
impl StructuralEq for TransactionError
impl StructuralPartialEq for TransactionError
Auto Trait Implementations§
impl !RefUnwindSafe for TransactionError
impl Send for TransactionError
impl Sync for TransactionError
impl Unpin for TransactionError
impl !UnwindSafe for TransactionError
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
§impl<T> Conv for T
impl<T> Conv for T
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
Causes
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
Causes
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where Self: LowerExp,
Causes
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where Self: LowerHex,
Causes
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where Self: Octal,
Causes
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where Self: Pointer,
Causes
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where Self: UpperExp,
Causes
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where Self: UpperHex,
Causes
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where &'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere TracedError<E>: From<E>,
§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more
§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where C: Color,
Set the foreground color generically Read more
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where C: Color,
Set the background color generically. Read more
§fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>
Change the background color to yellow
§fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>
Change the foreground color to magenta
§fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
Change the background color to magenta
§fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>
Change the background color to purple
§fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>
Change the foreground color to the terminal default
§fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>
Change the background color to the terminal default
§fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
Change the foreground color to bright black
§fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
Change the background color to bright black
§fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
Change the foreground color to bright red
§fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
Change the background color to bright red
§fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
Change the foreground color to bright green
§fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
Change the background color to bright green
§fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
Change the foreground color to bright yellow
§fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
Change the background color to bright yellow
§fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
Change the foreground color to bright blue
§fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
Change the background color to bright blue
§fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright magenta
§fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
Change the background color to bright magenta
§fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
Change the foreground color to bright purple
§fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
Change the background color to bright purple
§fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
Change the foreground color to bright cyan
§fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
Change the background color to bright cyan
§fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
Change the foreground color to bright white
§fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
Change the background color to bright white
§fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
fn blink_fast<'a>(&'a self) -> BlinkFastDisplay<'a, Self>
Make the text blink (but fast!)
Hide the text
§fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>
Cross out the text
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where Color: DynColor,
Set the foreground color at runtime. Only use if you do not know which color will be used at
compile-time. If the color is constant, use either
OwoColorize::fg
or
a color-specific method, such as OwoColorize::green
, Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where Color: DynColor,
Set the background color at runtime. Only use if you do not know what color to use at
compile-time. If the color is constant, use either
OwoColorize::bg
or
a color-specific method, such as OwoColorize::on_yellow
, Read more§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the foreground color to a specific RGB value.
§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the background color to a specific RGB value.
§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Sets the foreground color to an RGB value.
§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Sets the background color to an RGB value.
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere Self: Borrow<B>, B: 'a + ?Sized, R: 'a,
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> Rwhere Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere Self: AsRef<U>, U: 'a + ?Sized, R: 'a,
Borrows
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere Self: AsMut<U>, U: 'a + ?Sized, R: 'a,
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<Response, Error> ResponseResult<Response, Error> for Response
impl<Response, Error> ResponseResult<Response, Error> for Response
source§fn into_result(self) -> Result<Response, Error>
fn into_result(self) -> Result<Response, Error>
Converts the type into a
Result
that can be sent as a response.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,
Immutable access to the
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,
Mutable access to the
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,
Immutable access to the
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,
Mutable access to the
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
Self: Deref<Target = T>,
T: ?Sized,
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere Self: Deref<Target = T>, T: ?Sized,
Immutable access to the
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere Self: DerefMut<Target = T> + Deref, T: ?Sized,
Mutable access to the
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,
Calls
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds.