referrerpolicy=no-referrer-when-downgrade
polkadot_sdk_frame::traits

Trait Locker

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§

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§

§

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

§

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

Implementors§