Struct nostr_sdk::bitcoin::network::constants::UnknownMagic
pub struct UnknownMagic(_);Expand description
Error in creating a Network from Magic bytes.
Trait Implementations§
§impl Clone for UnknownMagic
impl Clone for UnknownMagic
§fn clone(&self) -> UnknownMagic
fn clone(&self) -> UnknownMagic
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for UnknownMagic
impl Debug for UnknownMagic
§impl Display for UnknownMagic
impl Display for UnknownMagic
§impl Error for UnknownMagic
impl Error for UnknownMagic
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl PartialEq<UnknownMagic> for UnknownMagic
impl PartialEq<UnknownMagic> for UnknownMagic
§fn eq(&self, other: &UnknownMagic) -> bool
fn eq(&self, other: &UnknownMagic) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for UnknownMagic
impl StructuralEq for UnknownMagic
impl StructuralPartialEq for UnknownMagic
Auto Trait Implementations§
impl RefUnwindSafe for UnknownMagic
impl Send for UnknownMagic
impl Sync for UnknownMagic
impl Unpin for UnknownMagic
impl UnwindSafe for UnknownMagic
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.