Skip to main content

ProcId

Enum ProcId 

Source
#[non_exhaustive]
#[repr(u16)]
pub enum ProcId {
Show 15 variants Cursor = 1, CursorOpen = 2, CursorPrepare = 3, CursorExecute = 4, CursorPrepExec = 5, CursorUnprepare = 6, CursorFetch = 7, CursorOption = 8, CursorClose = 9, ExecuteSql = 10, Prepare = 11, Execute = 12, PrepExec = 13, PrepExecRpc = 14, Unprepare = 15,
}
Expand description

Well-known stored procedure IDs.

These are special procedure IDs that SQL Server recognizes without requiring the procedure name.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Cursor = 1

sp_cursor (0x0001)

§

CursorOpen = 2

sp_cursoropen (0x0002)

§

CursorPrepare = 3

sp_cursorprepare (0x0003)

§

CursorExecute = 4

sp_cursorexecute (0x0004)

§

CursorPrepExec = 5

sp_cursorprepexec (0x0005)

§

CursorUnprepare = 6

sp_cursorunprepare (0x0006)

§

CursorFetch = 7

sp_cursorfetch (0x0007)

§

CursorOption = 8

sp_cursoroption (0x0008)

§

CursorClose = 9

sp_cursorclose (0x0009)

§

ExecuteSql = 10

sp_executesql (0x000A) - Primary method for parameterized queries

§

Prepare = 11

sp_prepare (0x000B)

§

Execute = 12

sp_execute (0x000C)

§

PrepExec = 13

sp_prepexec (0x000D) - Prepare and execute in one call

§

PrepExecRpc = 14

sp_prepexecrpc (0x000E)

§

Unprepare = 15

sp_unprepare (0x000F)

Trait Implementations§

Source§

impl Clone for ProcId

Source§

fn clone(&self) -> ProcId

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ProcId

Source§

impl Debug for ProcId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ProcId

Source§

impl PartialEq for ProcId

Source§

fn eq(&self, other: &ProcId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ProcId

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.