pub struct CreateRequest {
pub requested_oplock_level: OplockLevel,
pub impersonation_level: ImpersonationLevel,
pub desired_access: FileAccessMask,
pub file_attributes: FileAttributes,
pub share_access: ShareAccessFlags,
pub create_disposition: CreateDisposition,
pub create_options: CreateOptions,
pub name: SizedWideString,
pub contexts: ChainedItemList<CreateContextRequest, 8>,
}Expand description
The SMB2 CREATE Request packet is sent by a client to request either creation of or access to a file. In case of a named pipe or printer, the server creates a new file.
Reference: MS-SMB2 2.2.13
Fields§
§requested_oplock_level: OplockLevelThe requested oplock level for this file open
impersonation_level: ImpersonationLevelThe impersonation level requested by the application issuing the create request
desired_access: FileAccessMaskThe level of access required for the file or pipe
file_attributes: FileAttributesFile attributes to be applied when creating or opening the file
Specifies the sharing mode for the open
create_disposition: CreateDispositionDefines the action the server must take if the file already exists
create_options: CreateOptionsOptions to be applied when creating or opening the file
name: SizedWideStringThe Unicode file name to be created or opened
contexts: ChainedItemList<CreateContextRequest, 8>The list of create contexts sent in this request.
Use the CreateContextRequestData::first_... function family to get the first context of a specific type.
Trait Implementations§
Source§impl BinRead for CreateRequest
impl BinRead for CreateRequest
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for CreateRequest
impl BinWrite for CreateRequest
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Self to the writer assuming native-endian byte order. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Self to the writer, assuming big-endian byte order, using the
given arguments. Read more