#[non_exhaustive]pub enum APIVersion {
Version0_0_1,
}Expand description
Marked #[non_exhaustive] so future protocol versions can be added
without a source-level break. Downstream match sites must include a
wildcard arm. Historical note: an earlier release had APIVersion::from_u64
panic on unknown versions; both the panic fix (0.1.8) and this attribute
reduce the blast radius of version evolution.
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.
Version0_0_1
Trait Implementations§
Source§impl Clone for APIVersion
impl Clone for APIVersion
Source§fn clone(&self) -> APIVersion
fn clone(&self) -> APIVersion
Returns a duplicate 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 moreSource§impl Display for APIVersion
impl Display for APIVersion
Source§impl From<ContractContainer> for APIVersion
impl From<ContractContainer> for APIVersion
Source§fn from(contract: ContractContainer) -> APIVersion
fn from(contract: ContractContainer) -> APIVersion
Converts to this type from the input type.
Source§impl From<DelegateContainer> for APIVersion
impl From<DelegateContainer> for APIVersion
Source§fn from(delegate: DelegateContainer) -> APIVersion
fn from(delegate: DelegateContainer) -> APIVersion
Converts to this type from the input type.
Source§impl PartialEq for APIVersion
impl PartialEq for APIVersion
Source§impl<'a> TryFrom<&'a Version> for APIVersion
impl<'a> TryFrom<&'a Version> for APIVersion
impl Copy for APIVersion
impl Eq for APIVersion
impl StructuralPartialEq for APIVersion
Auto Trait Implementations§
impl Freeze for APIVersion
impl RefUnwindSafe for APIVersion
impl Send for APIVersion
impl Sync for APIVersion
impl Unpin for APIVersion
impl UnsafeUnpin for APIVersion
impl UnwindSafe for APIVersion
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