#[non_exhaustive]pub enum ExchangeId {
Known(KnownExchange),
Extension(ExtensionExchangeId),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Known(KnownExchange)
Extension(ExtensionExchangeId)
Implementations§
Trait Implementations§
Source§impl Clone for ExchangeId
impl Clone for ExchangeId
Source§fn clone(&self) -> ExchangeId
fn clone(&self) -> ExchangeId
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 ExchangeId
impl Debug for ExchangeId
Source§impl Display for ExchangeId
impl Display for ExchangeId
Source§impl From<KnownExchange> for ExchangeId
impl From<KnownExchange> for ExchangeId
Source§fn from(value: KnownExchange) -> Self
fn from(value: KnownExchange) -> Self
Converts to this type from the input type.
Source§impl Hash for ExchangeId
impl Hash for ExchangeId
Source§impl Ord for ExchangeId
impl Ord for ExchangeId
Source§fn cmp(&self, other: &ExchangeId) -> Ordering
fn cmp(&self, other: &ExchangeId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExchangeId
impl PartialEq for ExchangeId
Source§fn eq(&self, other: &ExchangeId) -> bool
fn eq(&self, other: &ExchangeId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ExchangeId
impl PartialOrd for ExchangeId
Source§impl TryFrom<&str> for ExchangeId
impl TryFrom<&str> for ExchangeId
Source§impl TryFrom<String> for ExchangeId
impl TryFrom<String> for ExchangeId
impl Eq for ExchangeId
impl StructuralPartialEq for ExchangeId
Auto Trait Implementations§
impl Freeze for ExchangeId
impl RefUnwindSafe for ExchangeId
impl Send for ExchangeId
impl Sync for ExchangeId
impl Unpin for ExchangeId
impl UnsafeUnpin for ExchangeId
impl UnwindSafe for ExchangeId
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