pub struct OneShotError { /* private fields */ }Expand description
Typed failure returned by OneShotClient submissions.
The concrete transport, protocol-repair, and provider diagnostics remain
available through std::fmt::Display without exposing transport-specific
variants to callers.
Implementations§
Trait Implementations§
Source§impl Clone for OneShotError
impl Clone for OneShotError
Source§fn clone(&self) -> OneShotError
fn clone(&self) -> OneShotError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OneShotError
impl Debug for OneShotError
Source§impl Display for OneShotError
impl Display for OneShotError
impl Eq for OneShotError
Source§impl Error for OneShotError
impl Error for OneShotError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for OneShotError
impl PartialEq for OneShotError
impl StructuralPartialEq for OneShotError
Auto Trait Implementations§
impl Freeze for OneShotError
impl RefUnwindSafe for OneShotError
impl Send for OneShotError
impl Sync for OneShotError
impl Unpin for OneShotError
impl UnsafeUnpin for OneShotError
impl UnwindSafe for OneShotError
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