pub struct ConanOutput(/* private fields */);
Expand description
conan install
command output data
Implementations§
Source§impl ConanOutput
impl ConanOutput
Sourcepub fn parse(self) -> CargoInstructions
pub fn parse(self) -> CargoInstructions
Parses conan install
command output and generates build script
instructions for Cargo.
§Panics
Panics if the Conan command invocation failed or the JSON-formatted Conan output could not be parsed.
Sourcepub fn ensure_success(&self)
pub fn ensure_success(&self)
Ensures that the Conan command has been executed successfully.
§Panics
Panics with an error message if the Conan command invocation failed.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Checks the Conan install command execution status.
Sourcepub fn status_code(&self) -> i32
pub fn status_code(&self) -> i32
Gets the Conan install command execution status code.
Auto Trait Implementations§
impl Freeze for ConanOutput
impl RefUnwindSafe for ConanOutput
impl Send for ConanOutput
impl Sync for ConanOutput
impl Unpin for ConanOutput
impl UnwindSafe for ConanOutput
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