pub struct EdgeConnectionError {
pub kind: EdgeConnectionErrorKind,
pub context: Cow<'static, str>,
}Fields§
§kind: EdgeConnectionErrorKind§context: Cow<'static, str>Implementations§
Source§impl EdgeConnectionError
impl EdgeConnectionError
pub fn new( kind: EdgeConnectionErrorKind, context: impl Into<Cow<'static, str>>, ) -> EdgeConnectionError
pub const fn underlying<E>( context: impl Into<Cow<'static, str>>, ) -> impl FnOnce(E) -> EdgeConnectionError
pub const fn codec( context: impl Into<Cow<'static, str>>, ) -> impl FnOnce(CodecError) -> EdgeConnectionError
Trait Implementations§
Source§impl Debug for EdgeConnectionError
impl Debug for EdgeConnectionError
Source§impl Display for EdgeConnectionError
impl Display for EdgeConnectionError
Source§impl Error for EdgeConnectionError
impl Error for EdgeConnectionError
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
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for EdgeConnectionError
impl !Sync for EdgeConnectionError
impl !UnwindSafe for EdgeConnectionError
impl Freeze for EdgeConnectionError
impl Send for EdgeConnectionError
impl Unpin for EdgeConnectionError
impl UnsafeUnpin for EdgeConnectionError
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