pub struct ParserReady { /* private fields */ }Expand description
Authenticated containment-ready state emitted before grammar or source input.
Implementations§
Source§impl ParserReady
impl ParserReady
Sourcepub const fn new(
session: ParserSessionIdentity,
artifact: ParserArtifactIdentity,
containment: ParserContainmentKind,
) -> Self
pub const fn new( session: ParserSessionIdentity, artifact: ParserArtifactIdentity, containment: ParserContainmentKind, ) -> Self
Construct the current protocol’s containment-ready state.
Sourcepub fn validate_for(
&self,
session: &ParserSessionIdentity,
artifact: &ParserArtifactIdentity,
containment: ParserContainmentKind,
) -> Result<(), ParserProtocolError>
pub fn validate_for( &self, session: &ParserSessionIdentity, artifact: &ParserArtifactIdentity, containment: ParserContainmentKind, ) -> Result<(), ParserProtocolError>
Validate READY against the exact supervised launch contract.
§Errors
Returns an error naming the first mismatched launch identity component.
Sourcepub const fn session(&self) -> &ParserSessionIdentity
pub const fn session(&self) -> &ParserSessionIdentity
Borrow the supervised process-session identity.
Sourcepub const fn artifact(&self) -> &ParserArtifactIdentity
pub const fn artifact(&self) -> &ParserArtifactIdentity
Borrow the exact immutable platform-pack artifact identity.
Sourcepub const fn containment(&self) -> ParserContainmentKind
pub const fn containment(&self) -> ParserContainmentKind
Return the admitted containment boundary.
Trait Implementations§
Source§impl Clone for ParserReady
impl Clone for ParserReady
Source§fn clone(&self) -> ParserReady
fn clone(&self) -> ParserReady
Returns a duplicate of the value. Read more
1.0.0 · 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 ParserReady
impl Debug for ParserReady
Source§impl<'de> Deserialize<'de> for ParserReady
impl<'de> Deserialize<'de> for ParserReady
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParserReady
impl PartialEq for ParserReady
Source§impl Serialize for ParserReady
impl Serialize for ParserReady
impl Eq for ParserReady
impl StructuralPartialEq for ParserReady
Auto Trait Implementations§
impl Freeze for ParserReady
impl RefUnwindSafe for ParserReady
impl Send for ParserReady
impl Sync for ParserReady
impl Unpin for ParserReady
impl UnwindSafe for ParserReady
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.