Struct forc_util::ForcCliResult
source · pub struct ForcCliResult<T> { /* private fields */ }
Expand description
A wrapper around ForcResult
. Designed to be returned from entry points as it handles
error reporting and exits with correct exit code.
Trait Implementations§
source§impl<T: Debug> Debug for ForcCliResult<T>
impl<T: Debug> Debug for ForcCliResult<T>
source§impl<T> From<Result<T, ForcError>> for ForcCliResult<T>
impl<T> From<Result<T, ForcError>> for ForcCliResult<T>
source§fn from(value: ForcResult<T>) -> Self
fn from(value: ForcResult<T>) -> Self
Converts to this type from the input type.
source§impl<T> Termination for ForcCliResult<T>
impl<T> Termination for ForcCliResult<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ForcCliResult<T>
impl<T> Send for ForcCliResult<T>where T: Send,
impl<T> Sync for ForcCliResult<T>where T: Sync,
impl<T> Unpin for ForcCliResult<T>where T: Unpin,
impl<T> !UnwindSafe for ForcCliResult<T>
Blanket Implementations§
§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.