pub struct TdsVersion(/* private fields */);Expand description
TDS protocol version.
Represents the version of the TDS protocol used for communication with SQL Server.
Implementations§
Source§impl TdsVersion
impl TdsVersion
Sourcepub const fn requires_prelogin_encryption_negotiation(self) -> bool
pub const fn requires_prelogin_encryption_negotiation(self) -> bool
Check if this version requires pre-login encryption negotiation.
TDS 7.x versions negotiate encryption during pre-login. TDS 8.0 requires TLS before any TDS traffic.
Trait Implementations§
Source§impl Clone for TdsVersion
impl Clone for TdsVersion
Source§fn clone(&self) -> TdsVersion
fn clone(&self) -> TdsVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TdsVersion
impl Debug for TdsVersion
Source§impl Default for TdsVersion
impl Default for TdsVersion
Source§impl Display for TdsVersion
impl Display for TdsVersion
Source§impl From<TdsVersion> for u32
impl From<TdsVersion> for u32
Source§fn from(version: TdsVersion) -> Self
fn from(version: TdsVersion) -> Self
Converts to this type from the input type.
Source§impl From<u32> for TdsVersion
impl From<u32> for TdsVersion
Source§impl Hash for TdsVersion
impl Hash for TdsVersion
Source§impl Ord for TdsVersion
impl Ord for TdsVersion
Source§fn cmp(&self, other: &TdsVersion) -> Ordering
fn cmp(&self, other: &TdsVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TdsVersion
impl PartialEq for TdsVersion
Source§impl PartialOrd for TdsVersion
impl PartialOrd for TdsVersion
impl Copy for TdsVersion
impl Eq for TdsVersion
impl StructuralPartialEq for TdsVersion
Auto Trait Implementations§
impl Freeze for TdsVersion
impl RefUnwindSafe for TdsVersion
impl Send for TdsVersion
impl Sync for TdsVersion
impl Unpin for TdsVersion
impl UnwindSafe for TdsVersion
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