Enum diem_assets_proof::ResultWrapper
source · pub enum ResultWrapper<T> {
Result(T),
Error(String),
}
Expand description
A helper type for serializing Result<T>
with serde-json.
Variants§
Implementations§
source§impl<T> ResultWrapper<T>
impl<T> ResultWrapper<T>
Trait Implementations§
source§impl<T: Debug> Debug for ResultWrapper<T>
impl<T: Debug> Debug for ResultWrapper<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ResultWrapper<T>where T: RefUnwindSafe,
impl<T> Send for ResultWrapper<T>where T: Send,
impl<T> Sync for ResultWrapper<T>where T: Sync,
impl<T> Unpin for ResultWrapper<T>where T: Unpin,
impl<T> UnwindSafe for ResultWrapper<T>where T: UnwindSafe,
Blanket Implementations§
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>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.