pub struct EmbeddedUpdateCheck { /* private fields */ }Expand description
The embedded update check: the document’s bytes and the package compiled from them.
Construction is the verification: holding one of these is proof that the embedded document compiled, packaged, and carries the exact queue, action, and command the server half keys on.
Implementations§
Source§impl EmbeddedUpdateCheck
impl EmbeddedUpdateCheck
Sourcepub fn load() -> Result<Self, EmbeddedUpdateCheckError>
pub fn load() -> Result<Self, EmbeddedUpdateCheckError>
Compiles, packages, and verifies the embedded document.
§Errors
Returns EmbeddedUpdateCheckError naming the stage that refused.
Sourcepub fn from_source(source: &str) -> Result<Self, EmbeddedUpdateCheckError>
pub fn from_source(source: &str) -> Result<Self, EmbeddedUpdateCheckError>
The whole preparation, over an arbitrary document.
Self::load is this applied to the embedded bytes; it is separate so
the verification can be exercised against documents that deliberately
omit a surface — a check nothing ever fails is a check nobody has
measured. Takes any &str (the source is retained owned) so test
documents need no 'static lifetime and no leak.
§Errors
As Self::load.
Sourcepub fn workflow_type(&self) -> &str
pub fn workflow_type(&self) -> &str
The workflow type an operator starts — UPDATE_CHECK_WORKFLOW_TYPE,
by construction.
Sourcepub const fn content_hash(&self) -> &ContentHash
pub const fn content_hash(&self) -> &ContentHash
The package’s content hash — this document’s version identity.
Trait Implementations§
Source§impl Clone for EmbeddedUpdateCheck
impl Clone for EmbeddedUpdateCheck
Source§fn clone(&self) -> EmbeddedUpdateCheck
fn clone(&self) -> EmbeddedUpdateCheck
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for EmbeddedUpdateCheck
impl RefUnwindSafe for EmbeddedUpdateCheck
impl Send for EmbeddedUpdateCheck
impl Sync for EmbeddedUpdateCheck
impl Unpin for EmbeddedUpdateCheck
impl UnsafeUnpin for EmbeddedUpdateCheck
impl UnwindSafe for EmbeddedUpdateCheck
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request