pub struct WorkloadPackage { /* private fields */ }Expand description
Public .actr package input object consumed by Hyper.
Implementations§
Source§impl WorkloadPackage
impl WorkloadPackage
Sourcepub fn from_path(path: impl AsRef<Path>) -> Result<Self>
pub fn from_path(path: impl AsRef<Path>) -> Result<Self>
Load a .actr package from the filesystem in one call.
Sourcepub fn manifest(&self) -> Result<PackageManifest, HyperError>
pub fn manifest(&self) -> Result<PackageManifest, HyperError>
Parse and return the package manifest (unverified).
This reads the manifest TOML embedded in the .actr ZIP without checking
the signature. Use Hyper::verify_package to obtain a verified manifest.
Re-parses on every call — cache externally if you need it hot.
Trait Implementations§
Source§impl Clone for WorkloadPackage
impl Clone for WorkloadPackage
Source§fn clone(&self) -> WorkloadPackage
fn clone(&self) -> WorkloadPackage
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 moreAuto Trait Implementations§
impl !Freeze for WorkloadPackage
impl RefUnwindSafe for WorkloadPackage
impl Send for WorkloadPackage
impl Sync for WorkloadPackage
impl Unpin for WorkloadPackage
impl UnsafeUnpin for WorkloadPackage
impl UnwindSafe for WorkloadPackage
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more