pub enum YoctoFailureKind {
DoBuild,
DoCompile,
DoCompilePtestBase,
DoConfigure,
DoConfigurePtestBase,
DoDeploy,
DoFetch,
Misc,
}
Variants§
DoBuild
The 6 standard tasks in Yocto https://docs.yoctoproject.org/ref-manual/tasks.html
DoCompile
DoCompilePtestBase
DoConfigure
DoConfigurePtestBase
DoDeploy
DoFetch
Other tasks
Misc
If it’s a type of failure we’re not familiar with or parsing fails, default to this
Implementations§
Source§impl YoctoFailureKind
impl YoctoFailureKind
Sourcepub fn parse_from_logfilename(fname: &str) -> Result<Self, Box<dyn Error>>
pub fn parse_from_logfilename(fname: &str) -> Result<Self, Box<dyn Error>>
Takes in a yocto logfile filename such as log.do_fetch.21616
and attempts to determine the type
of yocto task the the logfile is associated with.
§Example
let kind = YoctoFailureKind::parse_from_logfilename("log.do_fetch.21616").unwrap();
assert_eq!(kind, YoctoFailureKind::DoFetch);
// Infallible if you're sure the filename is a yocto log but it might not be a known task
let kind = YoctoFailureKind::parse_from_logfilename("log.some_custom_task.21616").unwrap_or_default();
assert_eq!(kind, YoctoFailureKind::Misc);
Trait Implementations§
Source§impl Clone for YoctoFailureKind
impl Clone for YoctoFailureKind
Source§fn clone(&self) -> YoctoFailureKind
fn clone(&self) -> YoctoFailureKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for YoctoFailureKind
impl Debug for YoctoFailureKind
Source§impl Default for YoctoFailureKind
impl Default for YoctoFailureKind
Source§fn default() -> YoctoFailureKind
fn default() -> YoctoFailureKind
Returns the “default value” for a type. Read more
Source§impl Display for YoctoFailureKind
impl Display for YoctoFailureKind
Source§impl FromStr for YoctoFailureKind
impl FromStr for YoctoFailureKind
Source§impl IntoEnumIterator for YoctoFailureKind
impl IntoEnumIterator for YoctoFailureKind
type Iterator = YoctoFailureKindIter
fn iter() -> YoctoFailureKindIter ⓘ
Source§impl Ord for YoctoFailureKind
impl Ord for YoctoFailureKind
Source§fn cmp(&self, other: &YoctoFailureKind) -> Ordering
fn cmp(&self, other: &YoctoFailureKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for YoctoFailureKind
impl PartialEq for YoctoFailureKind
Source§impl PartialOrd for YoctoFailureKind
impl PartialOrd for YoctoFailureKind
Source§impl TryFrom<&str> for YoctoFailureKind
impl TryFrom<&str> for YoctoFailureKind
impl Copy for YoctoFailureKind
impl Eq for YoctoFailureKind
impl StructuralPartialEq for YoctoFailureKind
Auto Trait Implementations§
impl Freeze for YoctoFailureKind
impl RefUnwindSafe for YoctoFailureKind
impl Send for YoctoFailureKind
impl Sync for YoctoFailureKind
impl Unpin for YoctoFailureKind
impl UnwindSafe for YoctoFailureKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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