#[non_exhaustive]
pub enum Error {
Show 161 variants
InvalidSubject,
InvalidCriticalHeader,
UnknownCriticalHeader,
InvalidIssuer,
NotImplemented,
AlgorithmNotImplemented,
ProofTypeNotImplemented,
MissingAlgorithm,
MissingCurve,
MissingPoint,
MissingKeyValue,
MissingIdentifier,
MissingChosenIssuer,
ExpectedTerm,
ExpectedNQuad,
ExpectedLiteral,
ExpectedBlankNodeLabel,
ExpectedIRIRef,
ExpectedLang,
AlgorithmMismatch,
KeyIdVMMismatch(String, String),
ObjectMismatch(String, String, String),
ExpectedObjectForPredicate(String, String),
UnexpectedObjectForPredicate(String, String),
MissingType,
MissingStatement,
UnexpectedEndOfList,
ListItemMismatch(String, String),
ExpectedEndOfList,
ExpectedRestOfList,
ExpectedListValue,
UnexpectedTriple(Triple),
KeyMismatch,
VerificationMethodMismatch,
UnsupportedAlgorithm,
UnsupportedCurve,
UnsupportedMultipleVMs,
KeyTypeNotImplemented,
UnsupportedNonDIDIssuer(String),
CurveNotImplemented(String),
MissingKey,
MissingPrivateKey,
MissingModulus,
MissingExponent,
MissingPrime,
MissingCredential,
MissingPresentation,
MissingKeyParameters,
MissingProof,
MissingIssuanceDate,
MissingTypeVerifiableCredential,
MissingTypeVerifiablePresentation,
MissingIssuer,
MissingAccountId,
MissingVerificationMethod,
MissingVerificationRelationship(String, ProofPurpose, String),
Key,
Secp256k1Parse(String),
Secp256r1Parse(String),
MultipleKeyMaterial,
TimeError,
URI,
DIDURL,
DIDURLDereference(String),
UnexpectedDIDFragment,
InvalidContext,
ControllerLimit,
MissingContext,
MissingDocumentId,
MissingProofSignature,
ExpiredProof,
FutureProof,
InvalidProofPurpose,
MissingProofPurpose,
InvalidProofDomain,
InvalidSignature,
UnexpectedSignatureLength(usize, usize),
InvalidJWS,
MissingJWSHeader,
MissingCredentialSchema,
UnsupportedProperty,
UnsupportedKeyType,
UnsupportedType,
UnsupportedProofPurpose,
UnsupportedCheck,
UnsupportedBlankPredicate,
JWTCredentialInPresentation,
UnencodableOptionClaim(String),
ExpectedUnencodedHeader,
ResourceNotFound(String),
InvalidProofTypeType,
InvalidKeyLength,
InconsistentDIDKey,
RingError,
ExpectedObject,
ExpectedArray,
ExpectedString,
ExpectedStringPublicKeyMultibase,
MultibaseKeyLength(usize, usize),
MultibaseKeyPrefix,
ExpectedList,
ExpectedArrayList,
ExpectedValue,
MissingGraph,
MissingActiveProperty,
MissingActivePropertyEntry,
ConflictingIndexes,
ValueObjectLanguageType,
UnexpectedKeyword,
UnexpectedIRI,
ExpectedValueTypeJson,
UnrecognizedDirection,
ExpectedStringIndex,
UnexpectedNestedArray,
UnexpectedValue,
UnexpectedList,
UnexpectedSet,
RepresentationNotSupported,
ExpectedLangStringType,
IRIRefNotWellFormed,
SerializeDouble,
ExpectedFailure,
ExpectedMultibaseZ,
EncodeTezosSignedMessage(EncodeTezosSignedMessageError),
DecodeTezosSignature(DecodeTezosSignatureError),
ExpectedOutput(String, String),
UnknownProcessingMode(String),
UnknownRdfDirection(String),
KeyRejected(KeyRejectedError),
FromUtf8(FromUtf8Error),
Secp256k1(Secp256k1Error),
Secp256r1(Secp256r1Error),
ASN1Encode(ASN1EncodeError),
Base64(Base64Error),
Multibase(MultibaseError),
JSON(JSONError),
SerdeJSON(SerdeJSONError),
SerdeUrlEncoded(SerdeUrlEncodedError),
JSONLD(JSONLDErrorCode),
IRI(IRIError),
ParseInt(ParseIntError),
CharTryFrom(CharTryFromError),
TryFromSlice(TryFromSliceError),
UnexpectedCAIP2Namepace(String, String),
UnexpectedAleoNetwork(String, String),
BlockchainAccountIdParse(BlockchainAccountIdParseError),
BlockchainAccountIdVerify(BlockchainAccountIdVerifyError),
FromHex(FromHexError),
Base58(Error),
HexString,
ExpectedLowercase,
SignaturePrefix,
KeyPrefix,
UnableToResolve(String),
P256KeyLength(usize),
ECEncodingError,
ECDecompress,
K256EC(Error),
P256EC(Error),
MissingFeatures(&'static str),
NumericDateOutOfMicrosecondPrecisionRange,
}
Expand description
Error type for ssi
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
InvalidSubject
Invalid subject for JWT VC
InvalidCriticalHeader
Invalid crit
property in JWT header
UnknownCriticalHeader
Unknown crit
header name in JWT header
InvalidIssuer
Invalid issuer for JWT
NotImplemented
Functionality not implemented
AlgorithmNotImplemented
JWA algorithm not implemented
ProofTypeNotImplemented
Linked Data Proof type not implemented
MissingAlgorithm
Missing algorithm in JWT
MissingCurve
Missing curve in JWK
MissingPoint
Missing elliptic curve point in JWK
MissingKeyValue
Missing key value for symmetric key
MissingIdentifier
Missing identifier
MissingChosenIssuer
Missing chosen issuer
ExpectedTerm
Expected RDF term
ExpectedNQuad
Expected RDF N-Quad
ExpectedLiteral
Expected RDF Literal
ExpectedBlankNodeLabel
Expected RDF blank node label
ExpectedIRIRef
Expected RDF IRI reference
ExpectedLang
Expected RDF language tag
AlgorithmMismatch
Algorithm in JWS header does not match JWK
KeyIdVMMismatch(String, String)
Verification method id does not match JWK id
ObjectMismatch(String, String, String)
RDF statement object does not match value
ExpectedObjectForPredicate(String, String)
Missing RDF statement object
UnexpectedObjectForPredicate(String, String)
Unexpected RDF statement object
MissingType
Missing type
MissingStatement
Missing RDF statement
UnexpectedEndOfList
Unexpected end of list
ListItemMismatch(String, String)
List item mismatch
ExpectedEndOfList
Expected end of list
ExpectedRestOfList
Expected rest of list
ExpectedListValue
Expected list value
UnexpectedTriple(Triple)
Unexpected triple
KeyMismatch
Key mismatch
VerificationMethodMismatch
Verification method mismatch
UnsupportedAlgorithm
Unsupported algorithm
UnsupportedCurve
Unsupported curve
UnsupportedMultipleVMs
Unsupported multiple verification methods
KeyTypeNotImplemented
Key type not implemented
UnsupportedNonDIDIssuer(String)
Unsupported non-DID issuer
CurveNotImplemented(String)
Curve not implemented
MissingKey
JWT key not found
MissingPrivateKey
Missing private key parametern JWK
MissingModulus
Missing modulus in RSA key
MissingExponent
Missing exponent in RSA key
MissingPrime
Missing prime factor in RSA key
MissingCredential
Verifiable credential not found in JWT
MissingPresentation
Verifiable presentation not found in JWT
MissingKeyParameters
JWT key parameters not found
MissingProof
Missing proof property
MissingIssuanceDate
Missing issuance date
MissingTypeVerifiableCredential
Missing type VerifiableCredential
MissingTypeVerifiablePresentation
Missing type VerifiablePresentation
MissingIssuer
Missing issuer property
MissingAccountId
Missing account id
MissingVerificationMethod
Missing verificationMethod
MissingVerificationRelationship(String, ProofPurpose, String)
Missing verification relationship
Key
Problem with JWT key
Secp256k1Parse(String)
Problem parsing Secp256k1 key
Secp256r1Parse(String)
Problem parsing Secp256r1 key
MultipleKeyMaterial
A verification method MUST NOT contain multiple verification material properties for the same material. (DID Core)
TimeError
Unable to convert date/time
URI
Invalid URI
DIDURL
Invalid DID URL
DIDURLDereference(String)
Unable to dereference DID URL
UnexpectedDIDFragment
Unexpected DID fragment
InvalidContext
Invalid context
ControllerLimit
DID controller limit exceeded
MissingContext
Missing context
MissingDocumentId
Missing document ID
MissingProofSignature
Missing JWS in proof
ExpiredProof
Expired proof
FutureProof
Proof creation time is in the future
InvalidProofPurpose
Invalid proof domain
MissingProofPurpose
Missing proof purpose
InvalidProofDomain
Invalid proof domain
InvalidSignature
Invalid Signature (in proof)
UnexpectedSignatureLength(usize, usize)
Signature length did not match expected length.
InvalidJWS
Invalid JWS
MissingJWSHeader
Missing JWS Header
MissingCredentialSchema
Missing credential schema for ZKP
UnsupportedProperty
Unsupported property for linked data proof
UnsupportedKeyType
Unsupported key type
UnsupportedType
Unsupported type for linked data proof
UnsupportedProofPurpose
Unsupported proof purpose
UnsupportedCheck
Unsupported check
UnsupportedBlankPredicate
Blank node identifier in predicate is unsupported
JWTCredentialInPresentation
Unsupported JWT VC in VP
UnencodableOptionClaim(String)
Linked data proof option unencodable as JWT claim
ExpectedUnencodedHeader
Expected unencoded JWT header
ResourceNotFound(String)
Resource not found
InvalidProofTypeType
Invalid ProofType type
InvalidKeyLength
Invalid key length
InconsistentDIDKey
Inconsistent DID Key
RingError
Crypto error from ring
crate
ExpectedObject
Expected object
ExpectedArray
Expected array
ExpectedString
Expected string
ExpectedStringPublicKeyMultibase
Expected string for publicKeyMultibase
MultibaseKeyLength(usize, usize)
Unexpected length for publicKeyMultibase
MultibaseKeyPrefix
Unexpected multibase (multicodec) key prefix multicodec
ExpectedList
Expected object with @list key
ExpectedArrayList
Expected array in @list
ExpectedValue
Expected object with @value key
MissingGraph
Missing graph
MissingActiveProperty
Missing active property
MissingActivePropertyEntry
Missing active property entry
ConflictingIndexes
ValueObjectLanguageType
Value object with @type must not contain @language or @direction
UnexpectedKeyword
Unexpected keyword in object
UnexpectedIRI
Unexpected IRI in object
ExpectedValueTypeJson
Value object expected @json @type for array or object value
UnrecognizedDirection
Unrecognized @direction value
ExpectedStringIndex
Expected string value for @index key of value object
UnexpectedNestedArray
Unexpected nested array
UnexpectedValue
Unexpected @value key
UnexpectedList
Unexpected @list key
UnexpectedSet
Unexpected @set key
RepresentationNotSupported
representationNotSupported
DID resolution error
ExpectedLangStringType
Expected rdf:langString type with language-tagged string literal
IRIRefNotWellFormed
IRI reference not well-formed
SerializeDouble
Unable to serialize double
ExpectedFailure
Expected failure
ExpectedMultibaseZ
Expected multibase Z prefix (base58)
EncodeTezosSignedMessage(EncodeTezosSignedMessageError)
Unable to encode Signed Tezos Message
DecodeTezosSignature(DecodeTezosSignatureError)
Unable to decode Tezos Signature
ExpectedOutput(String, String)
Output did not match expected value.
UnknownProcessingMode(String)
Unknown JSON-LD processing mode
UnknownRdfDirection(String)
Unknown RDF direction
KeyRejected(KeyRejectedError)
ring
only.Error parsing a key with ring
FromUtf8(FromUtf8Error)
Error parsing a UTF-8 string
Secp256k1(Secp256k1Error)
k256
only.Error from k256
crate
Secp256r1(Secp256r1Error)
p256
only.Error from p256
crate
ASN1Encode(ASN1EncodeError)
Error encoding ASN.1 data structure.
Base64(Base64Error)
Error decoding Base64
Multibase(MultibaseError)
Error parsing or producing multibase
JSON(JSONError)
Error from json
crate
SerdeJSON(SerdeJSONError)
Error from serde_json
crate
SerdeUrlEncoded(SerdeUrlEncodedError)
Error from serde_urlencoded
crate
JSONLD(JSONLDErrorCode)
Error from json-ld
crate
IRI(IRIError)
Error from iref
crate
ParseInt(ParseIntError)
Error parsing integer
CharTryFrom(CharTryFromError)
Error parsing a char
TryFromSlice(TryFromSliceError)
Error converting slice to array
UnexpectedCAIP2Namepace(String, String)
Unexpected CAIP-2 namespace
UnexpectedAleoNetwork(String, String)
Unexpected Aleo namespace
BlockchainAccountIdParse(BlockchainAccountIdParseError)
Error parsing CAIP-10 blockchain account id
BlockchainAccountIdVerify(BlockchainAccountIdVerifyError)
Error verifying CAIP-10 blockchain account id against a public key
FromHex(FromHexError)
Error decoding hex data
Base58(Error)
Error decoding Base58 data
HexString
Expected string beginning with ‘0x’
ExpectedLowercase
Expected string to contain only lowercase
SignaturePrefix
Unknown signature prefix
KeyPrefix
Unknown key prefix
UnableToResolve(String)
Unable to resolve DID
P256KeyLength(usize)
Expected 64 byte uncompressed key or 33 bytes compressed key
ECEncodingError
Unable to encode elliptic curve key
ECDecompress
Unable to decompress elliptic curve
K256EC(Error)
k256
only.Error from k256
crate
P256EC(Error)
p256
only.Error from p256
crate
MissingFeatures(&'static str)
Missing crate features
NumericDateOutOfMicrosecondPrecisionRange
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ASN1EncodeErr> for Error
impl From<ASN1EncodeErr> for Error
sourcefn from(err: ASN1EncodeError) -> Error
fn from(err: ASN1EncodeError) -> Error
Performs the conversion.
sourceimpl From<BlockchainAccountIdParseError> for Error
impl From<BlockchainAccountIdParseError> for Error
sourcefn from(err: BlockchainAccountIdParseError) -> Error
fn from(err: BlockchainAccountIdParseError) -> Error
Performs the conversion.
sourceimpl From<BlockchainAccountIdVerifyError> for Error
impl From<BlockchainAccountIdVerifyError> for Error
sourcefn from(err: BlockchainAccountIdVerifyError) -> Error
fn from(err: BlockchainAccountIdVerifyError) -> Error
Performs the conversion.
sourceimpl From<CharTryFromError> for Error
impl From<CharTryFromError> for Error
sourcefn from(err: CharTryFromError) -> Error
fn from(err: CharTryFromError) -> Error
Performs the conversion.
sourceimpl From<DecodeError> for Error
impl From<DecodeError> for Error
sourcefn from(err: Base64Error) -> Error
fn from(err: Base64Error) -> Error
Performs the conversion.
sourceimpl From<DecodeTezosSignatureError> for Error
impl From<DecodeTezosSignatureError> for Error
sourcefn from(err: DecodeTezosSignatureError) -> Error
fn from(err: DecodeTezosSignatureError) -> Error
Performs the conversion.
sourceimpl From<EncodeTezosSignedMessageError> for Error
impl From<EncodeTezosSignedMessageError> for Error
sourcefn from(err: EncodeTezosSignedMessageError) -> Error
fn from(err: EncodeTezosSignedMessageError) -> Error
Performs the conversion.
sourceimpl From<Error> for DereferencingMetadata
impl From<Error> for DereferencingMetadata
Wrap an Error in a Dereferencing Metadata atructure.
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(err: SerdeUrlEncodedError) -> Error
fn from(err: SerdeUrlEncodedError) -> Error
Performs the conversion.
sourceimpl From<Error> for Error
This is supported on crate feature k256
only.
impl From<Error> for Error
k256
only.sourcefn from(err: Secp256k1Error) -> Error
fn from(err: Secp256k1Error) -> Error
Performs the conversion.
sourceimpl From<FromHexError> for Error
impl From<FromHexError> for Error
sourcefn from(err: FromHexError) -> Error
fn from(err: FromHexError) -> Error
Performs the conversion.
sourceimpl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
sourcefn from(err: FromUtf8Error) -> Error
fn from(err: FromUtf8Error) -> Error
Performs the conversion.
sourceimpl From<KeyRejected> for Error
This is supported on crate feature ring
only.
impl From<KeyRejected> for Error
ring
only.sourcefn from(err: KeyRejectedError) -> Error
fn from(err: KeyRejectedError) -> Error
Performs the conversion.
sourceimpl From<ParseIntError> for Error
impl From<ParseIntError> for Error
sourcefn from(err: ParseIntError) -> Error
fn from(err: ParseIntError) -> Error
Performs the conversion.
sourceimpl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
sourcefn from(err: TryFromSliceError) -> Error
fn from(err: TryFromSliceError) -> Error
Performs the conversion.
sourceimpl From<Unspecified> for Error
This is supported on crate feature ring
only.
impl From<Unspecified> for Error
ring
only.sourcefn from(_: RingUnspecified) -> Error
fn from(_: RingUnspecified) -> Error
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> AsFail for T where
T: Fail,
impl<T> AsFail for T where
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
sourceimpl<E> BBSErrorExt for E where
E: Fail,
impl<E> BBSErrorExt for E where
E: Fail,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
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. Read more
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. Read more
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. Read more
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. Read more
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. Read more
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. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pipe for T where
T: ?Sized,
impl<T> Pipe for T where
T: ?Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
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) -> R where
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R where
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) -> R where
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R where
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) -> R where
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R where
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
Borrows self
, then passes self.borrow()
into the pipe function. Read more
fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R where
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
) -> R where
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
Mutably borrows self
, then passes self.borrow_mut()
into the pipe
function. Read more
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R where
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R where
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) -> R where
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) -> R where
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
Mutably borrows self
, then passes self.as_mut()
into the pipe
function. Read more
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
Borrows self
, then passes self.deref()
into the pipe function.
impl<T> PipeAsRef for T
impl<T> PipeAsRef for T
fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: AsRef<T>,
T: 'a,
R: 'a,
fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: AsRef<T>,
T: 'a,
R: 'a,
Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more
fn pipe_as_mut<'a, T, R>(&'a mut self, func: impl FnOnce(&'a mut T) -> R) -> R where
Self: AsMut<T>,
T: 'a,
R: 'a,
fn pipe_as_mut<'a, T, R>(&'a mut self, func: impl FnOnce(&'a mut T) -> R) -> R where
Self: AsMut<T>,
T: 'a,
R: 'a,
Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more
impl<T> PipeBorrow for T
impl<T> PipeBorrow for T
fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Borrow<T>,
T: 'a,
R: 'a,
fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R where
Self: Borrow<T>,
T: 'a,
R: 'a,
Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more
fn pipe_borrow_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
T: 'a,
R: 'a,
fn pipe_borrow_mut<'a, T, R>(
&'a mut self,
func: impl FnOnce(&'a mut T) -> R
) -> R where
Self: BorrowMut<T>,
T: 'a,
R: 'a,
Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more
impl<T> PipeDeref for T
impl<T> PipeDeref for T
fn pipe_deref<'a, R>(&'a self, func: impl FnOnce(&'a Self::Target) -> R) -> R where
Self: Deref,
R: 'a,
fn pipe_deref<'a, R>(&'a self, func: impl FnOnce(&'a Self::Target) -> R) -> R where
Self: Deref,
R: 'a,
Pipes a dereference into a function that cannot normally be called in suffix position. Read more
fn pipe_deref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
fn pipe_deref_mut<'a, R>(
&'a mut self,
func: impl FnOnce(&'a mut Self::Target) -> R
) -> R where
Self: DerefMut,
R: 'a,
Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more
impl<T> PipeRef for T
impl<T> PipeRef for T
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Tap for T
impl<T> Tap for T
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self where
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)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self where
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)) -> Self where
Self: AsRef<R>,
R: ?Sized,
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self where
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)) -> Self where
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self where
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)) -> Self where
Self: Deref<Target = T>,
T: ?Sized,
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self where
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)) -> Self where
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self where
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. Read more
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self where
Self: Borrow<B>,
B: ?Sized,
Calls .tap_borrow()
only in debug builds, and is erased in release
builds. Read more
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self where
Self: BorrowMut<B>,
B: ?Sized,
Calls .tap_borrow_mut()
only in debug builds, and is erased in release
builds. Read more
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self where
Self: AsRef<R>,
R: ?Sized,
Calls .tap_ref()
only in debug builds, and is erased in release
builds. Read more
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self where
Self: AsMut<R>,
R: ?Sized,
Calls .tap_ref_mut()
only in debug builds, and is erased in release
builds. Read more
impl<T> Tap for T
impl<T> Tap for T
fn tap<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
fn tap<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
Provides immutable access for inspection. Read more
fn tap_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
fn tap_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
Calls tap
in debug builds, and does nothing in release builds.
fn tap_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
fn tap_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
Provides mutable access for modification. Read more
fn tap_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
fn tap_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
Calls tap_mut
in debug builds, and does nothing in release builds.
impl<T, U> TapAsRef<U> for T where
U: ?Sized,
impl<T, U> TapAsRef<U> for T where
U: ?Sized,
fn tap_ref<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
fn tap_ref<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Provides immutable access to the reference for inspection.
fn tap_ref_dbg<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
fn tap_ref_dbg<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Calls tap_ref
in debug builds, and does nothing in release builds.
fn tap_ref_mut<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
fn tap_ref_mut<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Provides mutable access to the reference for modification.
fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Calls tap_ref_mut
in debug builds, and does nothing in release builds.
impl<T, U> TapBorrow<U> for T where
U: ?Sized,
impl<T, U> TapBorrow<U> for T where
U: ?Sized,
fn tap_borrow<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
fn tap_borrow<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Provides immutable access to the borrow for inspection. Read more
fn tap_borrow_dbg<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
fn tap_borrow_dbg<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
Calls tap_borrow
in debug builds, and does nothing in release builds.
fn tap_borrow_mut<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
fn tap_borrow_mut<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Provides mutable access to the borrow for modification.
fn tap_borrow_mut_dbg<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
fn tap_borrow_mut_dbg<F, R>(self, func: F) -> Self where
Self: BorrowMut<T>,
F: FnOnce(&mut T) -> R,
Calls tap_borrow_mut
in debug builds, and does nothing in release
builds. Read more
impl<T> TapDeref for T
impl<T> TapDeref for T
fn tap_deref<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
fn tap_deref<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Immutably dereferences self
for inspection.
fn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
fn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&Self::Target) -> R,
Calls tap_deref
in debug builds, and does nothing in release builds.
fn tap_deref_mut<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
fn tap_deref_mut<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Mutably dereferences self
for modification.
fn tap_deref_mut_dbg<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
fn tap_deref_mut_dbg<F, R>(self, func: F) -> Self where
Self: DerefMut,
F: FnOnce(&mut Self::Target) -> R,
Calls tap_deref_mut
in debug builds, and does nothing in release
builds. Read more
impl<T> ToOwned for T
impl<T> ToOwned for T
type Owned = T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more