pub enum CallbackResult {
Success(String),
Error(u32),
}Expand description
Callback result from platform
Variants§
Success(String)
Success with JSON payload
Error(u32)
Error with a specific error code (defined in i18n)
Implementations§
Source§impl CallbackResult
impl CallbackResult
Sourcepub fn into_result(self) -> Result<String, u32>
pub fn into_result(self) -> Result<String, u32>
Convert to a Result for easier handling in logic crate
Trait Implementations§
Source§impl Clone for CallbackResult
impl Clone for CallbackResult
Source§fn clone(&self) -> CallbackResult
fn clone(&self) -> CallbackResult
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 CallbackResult
impl RefUnwindSafe for CallbackResult
impl Send for CallbackResult
impl Sync for CallbackResult
impl Unpin for CallbackResult
impl UnwindSafe for CallbackResult
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