Trait SudoEndpoint

Source
pub trait SudoEndpoint: Handler {
    // Provided method
    fn sudo(
        self,
        deps: DepsMut<'_>,
        env: Env,
        msg: <Self as Handler>::SudoMsg,
    ) -> Result<Response, Self::Error> { ... }
}
Expand description

Trait for a contract’s Sudo entry point.

Provided Methods§

Source

fn sudo( self, deps: DepsMut<'_>, env: Env, msg: <Self as Handler>::SudoMsg, ) -> Result<Response, Self::Error>

Handler for the Sudo endpoint.

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.

Implementors§