pub enum XvcOutputLine {
Output(String),
Info(String),
Debug(String),
Warn(String),
Error(String),
Panic(String),
Tick(usize),
}
Expand description
Different channels of outputs Xvc can print
Variants§
Output(String)
The output that we should be reporting to user
Info(String)
For informational messages
Debug(String)
For debug output to show the internals of Xvc
Warn(String)
Warnings that are against some usual workflows
Error(String)
Errors that interrupts a workflow but may be recoverable
Panic(String)
Panics that interrupts the workflow and ends the program Note that this doesn’t call panic! automatically
Tick(usize)
Progress bar ticks. Self::Info is also used for Tick(1)
Implementations§
Source§impl XvcOutputLine
impl XvcOutputLine
Sourcepub fn info(s: &str) -> XvcOutputLine
pub fn info(s: &str) -> XvcOutputLine
print [INFO] s
Sourcepub fn debug(s: &str) -> XvcOutputLine
pub fn debug(s: &str) -> XvcOutputLine
print [DEBUG]
Sourcepub fn warn(s: &str) -> XvcOutputLine
pub fn warn(s: &str) -> XvcOutputLine
print [WARN] s
Sourcepub fn error(s: &str) -> XvcOutputLine
pub fn error(s: &str) -> XvcOutputLine
print [ERROR] s
Sourcepub fn panic(s: &str) -> XvcOutputLine
pub fn panic(s: &str) -> XvcOutputLine
print [PANIC] s
Does not panic. Developer should call panic!
macro separately.
Sourcepub fn tick(n: usize) -> XvcOutputLine
pub fn tick(n: usize) -> XvcOutputLine
Increment in progress bar
Trait Implementations§
Source§impl Clone for XvcOutputLine
impl Clone for XvcOutputLine
Source§fn clone(&self) -> XvcOutputLine
fn clone(&self) -> XvcOutputLine
Returns a duplicate 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 XvcOutputLine
impl Debug for XvcOutputLine
Source§impl Display for XvcOutputLine
impl Display for XvcOutputLine
Source§impl From<&str> for XvcOutputLine
impl From<&str> for XvcOutputLine
Source§fn from(s: &str) -> XvcOutputLine
fn from(s: &str) -> XvcOutputLine
Converts to this type from the input type.
Source§impl From<String> for XvcOutputLine
impl From<String> for XvcOutputLine
Source§fn from(s: String) -> XvcOutputLine
fn from(s: String) -> XvcOutputLine
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XvcOutputLine
impl RefUnwindSafe for XvcOutputLine
impl Send for XvcOutputLine
impl Sync for XvcOutputLine
impl Unpin for XvcOutputLine
impl UnwindSafe for XvcOutputLine
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> 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