pub enum ValidatePathInfoError {
InvalidReferenceDigestLen(usize, usize),
NoEntryPresent,
InvalidRootNode(DirectoryError),
InvalidNodeName(Vec<u8>, Error),
InvalidNarSha256DigestLen(usize),
InconsistentNumberOfReferences(usize, usize),
InvalidNarinfoReferenceName(usize, String),
InconsistentNarinfoReferenceNameDigest(usize, [u8; 20], [u8; 20]),
InvalidDeriverField(Error),
NarInfoFieldMissing,
InvalidCaField(ConvertCAError),
InvalidSignature(usize, SignatureError),
}Expand description
Errors that can occur during the validation of PathInfo messages.
Variants§
InvalidReferenceDigestLen(usize, usize)
Invalid length of a reference
NoEntryPresent
No entry present
InvalidRootNode(DirectoryError)
Node fails validation
InvalidNodeName(Vec<u8>, Error)
Invalid node name encountered. Root nodes in PathInfos have more strict name requirements
InvalidNarSha256DigestLen(usize)
The digest in narinfo.nar_sha256 has an invalid len.
InconsistentNumberOfReferences(usize, usize)
The number of references in the narinfo.reference_names field does not match the number of references in the .references field.
InvalidNarinfoReferenceName(usize, String)
A string in narinfo.reference_names does not parse to a store_path::StorePath.
InconsistentNarinfoReferenceNameDigest(usize, [u8; 20], [u8; 20])
The digest in the parsed .narinfo.reference_names[i] does not match
the one in .references[i].`
InvalidDeriverField(Error)
The deriver field is invalid.
NarInfoFieldMissing
The narinfo field is missing
InvalidCaField(ConvertCAError)
The ca field is invalid
InvalidSignature(usize, SignatureError)
The signature at position is invalid
Trait Implementations§
Source§impl Debug for ValidatePathInfoError
impl Debug for ValidatePathInfoError
Source§impl Display for ValidatePathInfoError
impl Display for ValidatePathInfoError
Source§impl Error for ValidatePathInfoError
impl Error for ValidatePathInfoError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ValidatePathInfoError> for Error
impl From<ValidatePathInfoError> for Error
Source§fn from(source: ValidatePathInfoError) -> Self
fn from(source: ValidatePathInfoError) -> Self
Source§impl From<ValidatePathInfoError> for Error
impl From<ValidatePathInfoError> for Error
Source§fn from(source: ValidatePathInfoError) -> Self
fn from(source: ValidatePathInfoError) -> Self
Source§impl From<ValidatePathInfoError> for Error
Available on crate feature cloud only.
impl From<ValidatePathInfoError> for Error
cloud only.Source§fn from(source: ValidatePathInfoError) -> Self
fn from(source: ValidatePathInfoError) -> Self
Source§impl PartialEq for ValidatePathInfoError
impl PartialEq for ValidatePathInfoError
Source§fn eq(&self, other: &ValidatePathInfoError) -> bool
fn eq(&self, other: &ValidatePathInfoError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValidatePathInfoError
Auto Trait Implementations§
impl !Freeze for ValidatePathInfoError
impl RefUnwindSafe for ValidatePathInfoError
impl Send for ValidatePathInfoError
impl Sync for ValidatePathInfoError
impl Unpin for ValidatePathInfoError
impl UnsafeUnpin for ValidatePathInfoError
impl UnwindSafe for ValidatePathInfoError
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
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<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>
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>
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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.