pub struct CreateResponse {
pub oplock_level: OplockLevel,
pub flags: CreateResponseFlags,
pub create_action: CreateAction,
pub creation_time: FileTime,
pub last_access_time: FileTime,
pub last_write_time: FileTime,
pub change_time: FileTime,
pub allocation_size: u64,
pub endof_file: u64,
pub file_attributes: FileAttributes,
pub file_id: FileId,
pub create_contexts: ChainedItemList<CreateContextResponse, 8>,
}Expand description
The SMB2 CREATE Response packet is sent by the server to notify the client of the status of its SMB2 CREATE Request.
Reference: MS-SMB2 2.2.14
Fields§
§oplock_level: OplockLevelThe oplock level that is granted to the client for this open
flags: CreateResponseFlagsResponse flags indicating properties of the opened file
create_action: CreateActionThe action taken in establishing the open
creation_time: FileTimeThe time when the file was created
last_access_time: FileTimeThe time the file was last accessed
last_write_time: FileTimeThe time when data was last written to the file
change_time: FileTimeThe time when the file was last modified
allocation_size: u64The size, in bytes, of the data that is allocated to the file
endof_file: u64The size, in bytes, of the file
file_attributes: FileAttributesThe attributes of the file
file_id: FileIdThe identifier of the open to a file or pipe that was established
create_contexts: ChainedItemList<CreateContextResponse, 8>The list of create contexts returned in this response.
Use the CreateContextResponseData::first_... function family to get the first context of a specific type.
Trait Implementations§
Source§impl BinRead for CreateResponse
impl BinRead for CreateResponse
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 CreateResponse
impl BinWrite for CreateResponse
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