pub struct FromRos2Report {
pub yaml: String,
pub notes: Vec<Ros2MigrationNote>,
pub written_to: Option<PathBuf>,
}Expand description
The result of astrs migrate from-ros2.
Fields§
§yaml: StringThe migrated manifest, rendered as YAML with TODO(astrs migrate)
comments (see astrs_migrate::Ros2MigrationResult::yaml).
notes: Vec<Ros2MigrationNote>Every observation made during the mapping.
written_to: Option<PathBuf>The file it was written to, if FromRos2Args::output was set.
Implementations§
Source§impl FromRos2Report
impl FromRos2Report
Sourcepub fn exit_code(&self) -> i32
pub fn exit_code(&self) -> i32
2 if any note is astrs_migrate::Ros2NoteSeverity::NeedsAttention,
0 otherwise – see FromDoraReport::exit_code for the
underlying convention this mirrors.
For the XML launch-file path this is effectively always 2
once at least one <node> was discovered: a bridge’s
message_type/direction can never be inferred from a launch
file alone (astrs_migrate::ros2::convert’s own docs), so every
discovered node contributes at least one NeedsAttention note.
That is expected and honest, not a bug – a from-ros2 run that
reports 0 either found no nodes at all, or migrated a Python
launch file whose skim found no candidates either (its general
“Python is not parsed” note is root-level but still
NeedsAttention, so even that path is realistically never 0
with real content).
Trait Implementations§
Source§impl Clone for FromRos2Report
impl Clone for FromRos2Report
Source§impl Debug for FromRos2Report
impl Debug for FromRos2Report
Auto Trait Implementations§
impl Freeze for FromRos2Report
impl RefUnwindSafe for FromRos2Report
impl Send for FromRos2Report
impl Sync for FromRos2Report
impl Unpin for FromRos2Report
impl UnsafeUnpin for FromRos2Report
impl UnwindSafe for FromRos2Report
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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 more