Struct red_ntlm::Version[][src]

pub struct Version {
    pub major: u8,
    pub minor: u8,
    pub build: u16,
    pub revision: u8,
}

Fields

major: u8minor: u8build: u16revision: u8

Implementations

impl Version[src]

pub fn new(major: u8, minor: u8, build: u16, revision: u8) -> Self[src]

pub fn windows7(build: u16) -> Self[src]

Creates a Windows 7 version with the given build.

pub fn windows7_7601() -> Self[src]

Creates a Windows 7 version with the build 7601.

pub fn os_names(&self) -> Vec<&'static str>[src]

Return the Operating Systems names that match with the version.

pub fn build(&self) -> Vec<u8>[src]

Create the raw representation in bytes to be transmitted over the network.

pub fn parse(raw: &[u8]) -> Result<(&[u8], Self)>[src]

Parse raw version bytes.

Trait Implementations

impl Clone for Version[src]

impl Debug for Version[src]

impl Default for Version[src]

impl PartialEq<Version> for Version[src]

impl StructuralPartialEq for Version[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.