pub struct StagedSource { /* private fields */ }Expand description
Verified source artifacts and their original proofs. Dropping this value removes its temporary files. Native callers can install it on a disk worker.
Implementations§
Source§impl StagedSource
impl StagedSource
Sourcepub fn install(
self,
repository: &Repository,
now_unix_seconds: i64,
) -> Result<StateId, Error>
pub fn install( self, repository: &Repository, now_unix_seconds: i64, ) -> Result<StateId, Error>
Call on the application’s disk worker. Owner history is independently verified and monotonically pinned; the authenticated hosted endpoint is pinned before accepting any original Integration operations.
Sourcepub fn install_owned_device(
self,
repository: &Repository,
authority: &DeviceAuthority,
binding: OwnedDeviceBinding<'_>,
spool_path: &str,
now_unix_seconds: i64,
) -> Result<StateId, Error>
pub fn install_owned_device( self, repository: &Repository, authority: &DeviceAuthority, binding: OwnedDeviceBinding<'_>, spool_path: &str, now_unix_seconds: i64, ) -> Result<StateId, Error>
Device-only source uses independently admitted local account authority;
incoming material cannot enroll its endpoint or replace a Spool owner.
The destination must be an unseeded Repository::init skeleton or
already belong to this exact Spool; importing never replaces local work.
Source§impl StagedSource
impl StagedSource
pub fn artifact_paths(&self) -> [PathBuf; 2]
pub fn operations(&self) -> &[SignedOperation]
pub fn dependency_geneses(&self) -> &[ThreadGenesisRecord]
pub fn ready(&self) -> &TransferReady
pub fn state(&self) -> &State
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Partial source remains read-only until a verified full closure arrives.
Auto Trait Implementations§
impl Freeze for StagedSource
impl RefUnwindSafe for StagedSource
impl Send for StagedSource
impl Sync for StagedSource
impl Unpin for StagedSource
impl UnsafeUnpin for StagedSource
impl UnwindSafe for StagedSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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