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>>, ) -> Self
pub const fn underlying<E: Error + Send + 'static>( context: impl Into<Cow<'static, str>>, ) -> impl FnOnce(E) -> Self
pub const fn codec( context: impl Into<Cow<'static, str>>, ) -> impl FnOnce(CodecError) -> Self
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 Freeze for EdgeConnectionError
impl !RefUnwindSafe for EdgeConnectionError
impl Send for EdgeConnectionError
impl !Sync for EdgeConnectionError
impl Unpin for EdgeConnectionError
impl !UnwindSafe 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