pub struct TrustedProfileSet { /* private fields */ }Expand description
Owns private inputs without Debug/Serialize, replacement or insertion APIs. Construct only from Host-owned inputs, never a peer’s profile JSON. Versions are random nonces, not hashes that could become a credential guessing oracle.
Implementations§
Source§impl TrustedProfileSet
impl TrustedProfileSet
Sourcepub async fn freeze(agents: Vec<HostStartupAgent>) -> BackendResult<Self>
pub async fn freeze(agents: Vec<HostStartupAgent>) -> BackendResult<Self>
Validate all trusted inputs before publishing any refs. Reads path metadata and resolves closed Provider configuration, but never runs an Agent, probes its HTTP endpoint, writes files or touches a catalog. Path checks reject aliases visible now, not external filesystem changes.
pub fn references(&self) -> impl ExactSizeIterator<Item = ProfileRef> + '_
Sourcepub async fn prepare(
&self,
reference: ProfileRef,
) -> BackendResult<PreparedProfile>
pub async fn prepare( &self, reference: ProfileRef, ) -> BackendResult<PreparedProfile>
Look up the entire opaque ref before binding. Never reinterpret an old version as the current inputs or resolve an arbitrary peer-supplied spec.
Auto Trait Implementations§
impl Forget for TrustedProfileSet
impl Freeze for TrustedProfileSet
impl Move for TrustedProfileSet
impl RefUnwindSafe for TrustedProfileSet
impl Send for TrustedProfileSet
impl Sync for TrustedProfileSet
impl Unpin for TrustedProfileSet
impl UnsafeUnpin for TrustedProfileSet
impl UnwindSafe for TrustedProfileSet
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