pub enum RosterDeployError {
WriteTarget(WriteTargetError),
ManifestCorrupt {
path: PathBuf,
detail: String,
},
Stage(Error),
Publish {
name: String,
source: Error,
},
Deploy(AgentBuildError),
Content(AgentContentError),
}Expand description
Why a roster deploy could not run.
Why: each variant has a different fix, and collapsing them into one string
would hide which. A refused write target means the project layout is wrong; a
corrupt ledger means ownership cannot be established and must be repaired
before anything is written.
What: the four failure modes ensure_roster_deployed can return.
Test: corrupt_manifest_is_reported_and_nothing_is_written.
Variants§
WriteTarget(WriteTargetError)
The computed target is not a legal Trusty Code write target.
ManifestCorrupt
The deployed-agent ledger exists but could not be read as one.
Stage(Error)
Staging the compiled-in sources into a scratch directory failed.
Publish
A file the deploy produced could not be read back out of the scratch directory, so it could not be published (#7779).
Fields
Deploy(AgentBuildError)
The shared deployer itself failed.
Content(AgentContentError)
The shared agent texts could not be loaded from instructional content
(#9011); the message names tm content install.
Trait Implementations§
Source§impl Debug for RosterDeployError
impl Debug for RosterDeployError
Source§impl Display for RosterDeployError
impl Display for RosterDeployError
Source§impl Error for RosterDeployError
impl Error for RosterDeployError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<AgentContentError> for RosterDeployError
impl From<AgentContentError> for RosterDeployError
Source§fn from(source: AgentContentError) -> Self
fn from(source: AgentContentError) -> Self
Source§impl From<WriteTargetError> for RosterDeployError
impl From<WriteTargetError> for RosterDeployError
Source§fn from(source: WriteTargetError) -> Self
fn from(source: WriteTargetError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for RosterDeployError
impl !UnwindSafe for RosterDeployError
impl Freeze for RosterDeployError
impl Send for RosterDeployError
impl Sync for RosterDeployError
impl Unpin for RosterDeployError
impl UnsafeUnpin for RosterDeployError
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
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more