pub trait CommandScopeSource<S: Clone> {
// Required methods
fn read_control(&self) -> Result<StorageReadControl, SQLError>;
fn cancellation(&self) -> &CancellationToken;
fn command_scope(
&self,
privilege_subject: Option<&RoleReference>,
relations_bound: bool,
) -> Result<CteScope<S>, SQLError>;
}Expand description
Capture catalog, namespace, trigger transition, and privilege state for a command.
Required Methods§
fn read_control(&self) -> Result<StorageReadControl, SQLError>
fn cancellation(&self) -> &CancellationToken
fn command_scope( &self, privilege_subject: Option<&RoleReference>, relations_bound: bool, ) -> Result<CteScope<S>, SQLError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".