referrerpolicy=no-referrer-when-downgrade

Trait frame_support::traits::tokens::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.

Object Safety§

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§