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.
§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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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
Tests for
self and other values to be equal, and is used by ==.impl Eq for ValidatedProcPath
impl StructuralPartialEq for ValidatedProcPath
Auto Trait Implementations§
impl Freeze for ValidatedProcPath
impl RefUnwindSafe for ValidatedProcPath
impl Send for ValidatedProcPath
impl Sync for ValidatedProcPath
impl Unpin for ValidatedProcPath
impl UnsafeUnpin for ValidatedProcPath
impl UnwindSafe for ValidatedProcPath
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