CreateContextType

Enum CreateContextType 

Source
pub enum CreateContextType {
Show 14 variants EXTA, SECD, DHNQ, DHNC, ALSI, MXAC, TWRP, QFID, RQLS, DH2Q, DH2C, APPINSTID, APPINSTVER, SVHDXOPENDEV,
}
Expand description

This enum contains all the types of create contexts.

Variants§

§

EXTA

The data contains the extended attributes that MUST be stored on the created file.

§

SECD

The data contains a security descriptor that MUST be stored on the created file.

§

DHNQ

The client is requesting the open to be durable

§

DHNC

The client is requesting to reconnect to a durable open after being disconnected

§

ALSI

The data contains the required allocation size of the newly created file.

§

MXAC

The client is requesting that the server return maximal access information.

§

TWRP

The client is requesting that the server open an earlier version of the file identified by the provided time stamp.

§

QFID

The client is requesting that the server return a 32-byte opaque BLOB that uniquely identifies the file being opened on disk.

§

RQLS

The client is requesting that the server return a lease. This value is only supported for the SMB 2.1 and 3.x dialect family.

§

DH2Q

The client is requesting the open to be durable. This value is only supported for the SMB 3.x dialect family.

§

DH2C

The client is requesting to reconnect to a durable open after being disconnected. This value is only supported for the SMB 3.x dialect family.

§

APPINSTID

The client is supplying an identifier provided by an application instance while opening a file. This value is only supported for the SMB 3.x dialect family.

§

APPINSTVER

The client is supplying a version to correspond to the application instance identifier. This value is only supported for SMB 3.1.1 dialect.

§

SVHDXOPENDEV

Provided by an application while opening a shared virtual disk file. This Create Context value is not valid for the SMB 2.002, SMB 2.1, and SMB 3.0 dialects

Implementations§

Source§

impl CreateContextType

Source

pub const EXTA_NAME: &[u8] = b"ExtA"

The name for the exta create context.

Source

pub const SECD_NAME: &[u8] = b"SecD"

The name for the secd create context.

Source

pub const DHNQ_NAME: &[u8] = b"DHnQ"

The name for the dhnq create context.

Source

pub const DHNC_NAME: &[u8] = b"DHNc"

The name for the dhnc create context.

Source

pub const ALSI_NAME: &[u8] = b"AlSi"

The name for the alsi create context.

Source

pub const MXAC_NAME: &[u8] = b"MxAc"

The name for the mxac create context.

Source

pub const TWRP_NAME: &[u8] = b"TWrp"

The name for the twrp create context.

Source

pub const QFID_NAME: &[u8] = b"QFid"

The name for the qfid create context.

Source

pub const RQLS_NAME: &[u8] = b"RqLs"

The name for the rqls create context.

Source

pub const DH2Q_NAME: &[u8] = b"DH2Q"

The name for the dh2q create context.

Source

pub const DH2C_NAME: &[u8] = b"DH2C"

The name for the dh2c create context.

Source

pub const APPINSTID_NAME: &[u8] = b"\x45\xBC\xA6\x6A\xEF\xA7\xF7\x4A\x90\x08\xFA\x46\x2E\x14\x4D\x74"

The name for the appinstid create context.

Source

pub const APPINSTVER_NAME: &[u8] = b"\xB9\x82\xD0\xB7\x3B\x56\x07\x4F\xA0\x7B\x52\x4A\x81\x16\xA0\x10"

The name for the appinstver create context.

Source

pub const SVHDXOPENDEV_NAME: &[u8] = b"\x9C\xCB\xCF\x9E\x04\xC1\xE6\x43\x98\x0E\x15\x8D\xA1\xF6\xEC\x83"

The name for the svhdxopendev create context.

Source

pub fn from_name(name: &[u8]) -> Option<CreateContextType>

Source

pub fn name(&self) -> &[u8]

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V