pub enum CargoMessageError {
Show 13 variants
Read {
line: usize,
source: Error,
},
EmptyLine {
line: usize,
},
MalformedJson {
line: usize,
source: Error,
},
MissingReason {
line: usize,
},
UnknownReason {
line: usize,
reason: String,
},
MalformedAuxiliaryMessage {
line: usize,
reason: String,
},
MalformedCompilerArtifact {
line: usize,
source: Error,
},
IncompleteCompilerArtifact {
line: usize,
},
DuplicateCompilerArtifact {
line: usize,
package_id: String,
target: String,
},
MalformedBuildFinished {
line: usize,
},
MessageAfterBuildFinished {
line: usize,
},
CargoBuildFailed,
MissingBuildFinished,
}Expand description
Cargo JSON protocol failure.
Variants§
Read
Stream line could not be read.
EmptyLine
Cargo emitted an empty stdout line in JSON mode.
MalformedJson
JSON syntax is malformed.
MissingReason
Required reason discriminator is absent.
UnknownReason
A future reason must be reviewed before it is ignored.
MalformedAuxiliaryMessage
A known non-artifact message omitted fields needed to trust the stream.
MalformedCompilerArtifact
Artifact message does not match Cargo’s required schema.
IncompleteCompilerArtifact
Semantically required artifact identity material was empty.
DuplicateCompilerArtifact
Cargo repeated exactly the same artifact message.
Fields
MalformedBuildFinished
Terminal message lacks its success flag.
MessageAfterBuildFinished
Any content after the terminal record is suspicious.
CargoBuildFailed
Cargo reported compilation failure.
MissingBuildFinished
Stream ended without a terminal record.
Trait Implementations§
Source§impl Debug for CargoMessageError
impl Debug for CargoMessageError
Source§impl Display for CargoMessageError
impl Display for CargoMessageError
Source§impl Error for CargoMessageError
impl Error for CargoMessageError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for CargoMessageError
impl !UnwindSafe for CargoMessageError
impl Freeze for CargoMessageError
impl Send for CargoMessageError
impl Sync for CargoMessageError
impl Unpin for CargoMessageError
impl UnsafeUnpin for CargoMessageError
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
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