Enum ChainKey
pub enum ChainKey {
Mainnet,
Sepolia,
Other,
}Expand description
A short, opinionated chain identifier used as the top-level key in
RuntimeCache. We deliberately collapse the full hex felt to a
human-readable slug so the cache stays grep-friendly.
Variants§
Mainnet
Starknet mainnet (SN_MAIN).
Sepolia
Starknet sepolia (SN_SEPOLIA).
Other
Any other chain — typically a local devnet. The raw chain-id felt is preserved.
Implementations§
Trait Implementations§
impl Copy for ChainKey
impl Eq for ChainKey
impl StructuralPartialEq for ChainKey
Auto Trait Implementations§
impl Freeze for ChainKey
impl RefUnwindSafe for ChainKey
impl Send for ChainKey
impl Sync for ChainKey
impl Unpin for ChainKey
impl UnsafeUnpin for ChainKey
impl UnwindSafe for ChainKey
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.