pub struct UnsupportedLinkError {
pub family: &'static str,
pub link_name: String,
}Expand description
Error returned when an InverseLink cannot be paired with a particular
response family because the link is structurally unsupported for that
family. Carries the link name so call sites can produce a useful message
without losing the offending variant.
Fields§
§family: &'static str§link_name: StringImplementations§
Source§impl UnsupportedLinkError
impl UnsupportedLinkError
Sourcepub fn new(family: &'static str, link: &InverseLink) -> Self
pub fn new(family: &'static str, link: &InverseLink) -> Self
Construct an UnsupportedLinkError tagged with the response-family
name ("binomial", "gaussian", …) and a printable name for the
offending InverseLink variant (extracted via the module-private
inverse_link_diagnostic_name). No allocation beyond the link name.
Trait Implementations§
Source§impl Clone for UnsupportedLinkError
impl Clone for UnsupportedLinkError
Source§fn clone(&self) -> UnsupportedLinkError
fn clone(&self) -> UnsupportedLinkError
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 UnsupportedLinkError
impl Debug for UnsupportedLinkError
Source§impl Display for UnsupportedLinkError
impl Display for UnsupportedLinkError
impl Eq for UnsupportedLinkError
Source§impl Error for UnsupportedLinkError
impl Error for UnsupportedLinkError
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 UnsupportedLinkError
impl PartialEq for UnsupportedLinkError
Source§fn eq(&self, other: &UnsupportedLinkError) -> bool
fn eq(&self, other: &UnsupportedLinkError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnsupportedLinkError
Auto Trait Implementations§
impl Freeze for UnsupportedLinkError
impl RefUnwindSafe for UnsupportedLinkError
impl Send for UnsupportedLinkError
impl Sync for UnsupportedLinkError
impl Unpin for UnsupportedLinkError
impl UnsafeUnpin for UnsupportedLinkError
impl UnwindSafe for UnsupportedLinkError
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