referrerpolicy=no-referrer-when-downgrade
frame_support::traits::tokens

Trait Locker

Source
pub trait Locker<CollectionId, ItemId> {
    // Required method
    fn is_locked(collection: CollectionId, item: ItemId) -> bool;
}
Expand description

Trait to handle NFT locking mechanism to ensure interactions with the asset can be implemented downstream to extend logic of Uniques/Nfts current functionality.

Required Methods§

Source

fn is_locked(collection: CollectionId, item: ItemId) -> bool

Check if the asset should be locked and prevent interactions with the asset from executing.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<CollectionId, ItemId> Locker<CollectionId, ItemId> for ()

Source§

fn is_locked(_collection: CollectionId, _item: ItemId) -> bool

Implementors§