#[non_exhaustive]pub struct FlossOutput {
pub args: Vec<OsString>,
pub program: OsString,
pub status: ExitStatus,
pub stderr: Vec<u8>,
pub stdout: Vec<u8>,
}Expand description
FLOSS 进程输出。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.args: Vec<OsString>§program: OsString§status: ExitStatus§stderr: Vec<u8>§stdout: Vec<u8>Implementations§
Source§impl FlossOutput
impl FlossOutput
Sourcepub fn stderr_lossy(&self) -> Cow<'_, str>
pub fn stderr_lossy(&self) -> Cow<'_, str>
将 stderr 以“容错方式”解码(遇到非法 UTF-8 会替换为 U+FFFD)。
Sourcepub fn stderr_string(&self) -> Result<String>
pub fn stderr_string(&self) -> Result<String>
Sourcepub fn stdout_lossy(&self) -> Cow<'_, str>
pub fn stdout_lossy(&self) -> Cow<'_, str>
将 stdout 以“容错方式”解码(遇到非法 UTF-8 会替换为 U+FFFD)。
Sourcepub fn stdout_string(&self) -> Result<String>
pub fn stdout_string(&self) -> Result<String>
Trait Implementations§
Source§impl Clone for FlossOutput
impl Clone for FlossOutput
Source§fn clone(&self) -> FlossOutput
fn clone(&self) -> FlossOutput
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 moreAuto Trait Implementations§
impl Freeze for FlossOutput
impl RefUnwindSafe for FlossOutput
impl Send for FlossOutput
impl Sync for FlossOutput
impl Unpin for FlossOutput
impl UnwindSafe for FlossOutput
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