Struct odra_modules::access::OwnableRef
source · pub struct OwnableRef { /* private fields */ }Implementations§
source§impl OwnableRef
impl OwnableRef
source§impl OwnableRef
impl OwnableRef
sourcepub fn transfer_ownership(&mut self, new_owner: Address)
pub fn transfer_ownership(&mut self, new_owner: Address)
Transfers ownership of the module to new_owner. This function can only
be accessed by the current owner of the module.
sourcepub fn renounce_ownership(&mut self)
pub fn renounce_ownership(&mut self)
If the contract’s owner chooses to renounce their ownership, the contract will no longer have an owner. This means that any functions that can only be accessed by the owner will no longer be available.
The function can only be called by the current owner, and it will permanently remove the owner’s privileges.
Auto Trait Implementations§
impl RefUnwindSafe for OwnableRef
impl Send for OwnableRef
impl Sync for OwnableRef
impl Unpin for OwnableRef
impl UnwindSafe for OwnableRef
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