pub struct PointerFormatError(pub String);Expand description
Returned by PublishedArtifact::parse when the pointer file is not the
expected cargoless-latest-green/v1 shape. Dependency-free (no
thiserror); a corrupt pointer is treated as “no green yet”, never
half-decoded into a wrong artifact.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for PointerFormatError
impl Clone for PointerFormatError
Source§fn clone(&self) -> PointerFormatError
fn clone(&self) -> PointerFormatError
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 PointerFormatError
impl Debug for PointerFormatError
Source§impl Display for PointerFormatError
impl Display for PointerFormatError
Source§impl Error for PointerFormatError
impl Error for PointerFormatError
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 PointerFormatError
impl PartialEq for PointerFormatError
Source§fn eq(&self, other: &PointerFormatError) -> bool
fn eq(&self, other: &PointerFormatError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PointerFormatError
impl StructuralPartialEq for PointerFormatError
Auto Trait Implementations§
impl Freeze for PointerFormatError
impl RefUnwindSafe for PointerFormatError
impl Send for PointerFormatError
impl Sync for PointerFormatError
impl Unpin for PointerFormatError
impl UnsafeUnpin for PointerFormatError
impl UnwindSafe for PointerFormatError
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