#[repr(u8)]pub enum PreLoginOption {
Version = 0,
Encryption = 1,
Instance = 2,
ThreadId = 3,
Mars = 4,
TraceId = 5,
FedAuthRequired = 6,
Nonce = 7,
Terminator = 255,
}Expand description
Pre-login option types.
Variants§
Version = 0
Version information.
Encryption = 1
Encryption negotiation.
Instance = 2
Instance name (for named instances).
ThreadId = 3
Thread ID.
Mars = 4
MARS (Multiple Active Result Sets) support.
TraceId = 5
Trace ID for distributed tracing.
FedAuthRequired = 6
Federated authentication required.
Nonce = 7
Nonce for encryption.
Terminator = 255
Terminator (end of options).
Implementations§
Source§impl PreLoginOption
impl PreLoginOption
Sourcepub fn from_u8(value: u8) -> Result<Self, ProtocolError>
pub fn from_u8(value: u8) -> Result<Self, ProtocolError>
Create from raw byte value.
Trait Implementations§
Source§impl Clone for PreLoginOption
impl Clone for PreLoginOption
Source§fn clone(&self) -> PreLoginOption
fn clone(&self) -> PreLoginOption
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreLoginOption
impl Debug for PreLoginOption
Source§impl PartialEq for PreLoginOption
impl PartialEq for PreLoginOption
impl Copy for PreLoginOption
impl Eq for PreLoginOption
impl StructuralPartialEq for PreLoginOption
Auto Trait Implementations§
impl Freeze for PreLoginOption
impl RefUnwindSafe for PreLoginOption
impl Send for PreLoginOption
impl Sync for PreLoginOption
impl Unpin for PreLoginOption
impl UnwindSafe for PreLoginOption
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)