tiberius/
tds.rs

1pub mod codec;
2mod collation;
3mod context;
4pub mod numeric;
5pub mod stream;
6pub mod time;
7pub mod xml;
8
9pub(crate) use collation::*;
10pub(crate) use context::*;
11pub(crate) use numeric::*;
12
13/// The amount of bytes a packet header consists of
14pub(crate) const HEADER_BYTES: usize = 8;
15
16uint_enum! {
17    /// The configured encryption level specifying if encryption is required
18    #[repr(u8)]
19    pub enum EncryptionLevel {
20        /// Only use encryption for the login procedure
21        Off = 0,
22        /// Encrypt everything if possible
23        On = 1,
24        /// Do not encrypt anything
25        NotSupported = 2,
26        /// Encrypt everything and fail if not possible
27        Required = 3,
28    }
29
30}