pub struct StagedSource { /* private fields */ }Expand description
Structurally checked source artifacts and original proofs. These bytes grant no authority. Dropping this value removes its temporary files.
Implementations§
Source§impl StagedSource
impl StagedSource
Sourcepub fn install_hosted(
self,
repository: &Repository,
trust: &HostedTrust<impl Clock>,
authority: &impl AcceptedAuthority,
now_seconds: i64,
) -> Result<StateId, Error>
pub fn install_hosted( self, repository: &Repository, trust: &HostedTrust<impl Clock>, authority: &impl AcceptedAuthority, now_seconds: i64, ) -> Result<StateId, Error>
authority and trust are independently selected by the receiver.
Every selected original is admitted again under the durable trust lock;
the complete public history never selects unrelated native branches.
pub fn publish_hosted( self, repository: &Repository, trust: &HostedTrust<impl Clock>, authority: &impl AcceptedAuthority, now_seconds: i64, publication: HostedPublication<'_>, response: impl FnOnce(&TrustTransaction<'_>) -> Result<Vec<u8>>, ) -> Result<Vec<u8>, Error>
Source§impl StagedSource
impl StagedSource
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>
Verify a privately owned device through independent account authority. Originals must already belong to this exact Spool.
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
Retained bytes are structural evidence, never installation authority.
Refresh witness-set/proof metadata after retirement or freshness renewal while keeping the downloaded pack and every original signed byte.
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