Enum SigningDataError
pub enum SigningDataError<E> {
Io(Error),
Sighash(E),
}
Expand description
Error returned when writing signing data fails.
Variants§
Io(Error)
Can happen only when using *_encode_signing_*
methods with custom writers, engines
like those used in *_signature_hash
methods do not error.
Sighash(E)
An argument to the called sighash function was invalid.
Trait Implementations§
§impl<E> Debug for SigningDataError<E>where
E: Debug,
impl<E> Debug for SigningDataError<E>where
E: Debug,
§impl<E> Display for SigningDataError<E>where
E: Display,
impl<E> Display for SigningDataError<E>where
E: Display,
§impl<E> Error for SigningDataError<E>where
E: Error + 'static,
impl<E> Error for SigningDataError<E>where
E: Error + 'static,
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
§impl<E> From<Error> for SigningDataError<E>
impl<E> From<Error> for SigningDataError<E>
§fn from(value: Error) -> SigningDataError<E>
fn from(value: Error) -> SigningDataError<E>
Converts to this type from the input type.
§impl<E> From<Infallible> for SigningDataError<E>
impl<E> From<Infallible> for SigningDataError<E>
§fn from(never: Infallible) -> SigningDataError<E>
fn from(never: Infallible) -> SigningDataError<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for SigningDataError<E>where
E: Freeze,
impl<E> Send for SigningDataError<E>where
E: Send,
impl<E> Sync for SigningDataError<E>where
E: Sync,
impl<E> !RefUnwindSafe for SigningDataError<E>
impl<E> Unpin for SigningDataError<E>where
E: Unpin,
impl<E> !UnwindSafe for SigningDataError<E>
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.