pub struct ValidatedProcPath { /* private fields */ }Expand description
Validated /proc/* introspection endpoint.
This proves the adapter selected one of the declared proc surfaces before asking Engine for metadata. Reserved or misspelled proc paths stay in the adapter as 404/405 rendering concerns.
Implementations§
Source§impl ValidatedProcPath
impl ValidatedProcPath
Sourcepub fn new(raw: impl AsRef<str>) -> Result<Self, InvalidProcPath>
pub fn new(raw: impl AsRef<str>) -> Result<Self, InvalidProcPath>
Parses a wire-shaped proc path into a sealed endpoint identity.
Accepts proc/version, proc/worlds, proc/du, proc/df,
proc/pool, or proc/audit/<world>/verify. Leading and trailing
slashes are tolerated. The audit world segment must already be a
canonical Engine path such as home/foo; bare names like foo, wire
paths like /home/foo, and generated proc/* worlds are rejected.
§Errors
Returns InvalidProcPath if the input is not one of the declared
endpoints, or if the audit-verify world fails canonical-path
validation.
Sourcepub fn audit_verify(world: ValidatedWorldPath) -> Self
pub fn audit_verify(world: ValidatedWorldPath) -> Self
Returns the proof token for an audit verify request against a
specific world.
Trait Implementations§
Source§impl Clone for ValidatedProcPath
impl Clone for ValidatedProcPath
Source§fn clone(&self) -> ValidatedProcPath
fn clone(&self) -> ValidatedProcPath
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ValidatedProcPath
impl Debug for ValidatedProcPath
Source§impl PartialEq for ValidatedProcPath
impl PartialEq for ValidatedProcPath
Source§fn eq(&self, other: &ValidatedProcPath) -> bool
fn eq(&self, other: &ValidatedProcPath) -> bool
self and other values to be equal, and is used by ==.