pub struct LoginAck {
pub interface: u8,
pub tds_version: u32,
pub prog_name: String,
pub prog_version: u32,
}Expand description
Login acknowledgment token.
Fields§
§interface: u8Interface type.
tds_version: u32TDS version.
prog_name: StringProgram name.
prog_version: u32Program version.
Implementations§
Source§impl LoginAck
impl LoginAck
Sourcepub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
pub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
Decode a LOGINACK token from bytes.
Sourcepub fn tds_version(&self) -> TdsVersion
pub fn tds_version(&self) -> TdsVersion
Get the TDS version as a TdsVersion.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoginAck
impl RefUnwindSafe for LoginAck
impl Send for LoginAck
impl Sync for LoginAck
impl Unpin for LoginAck
impl UnwindSafe for LoginAck
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