pub struct SrvCopychunkCopy {
pub source_key: [u8; 24],
pub chunks: Vec<SrvCopychunkItem>,
}Expand description
Request packet for initiating a server-side copy of data. Sent in an SMB2 IOCTL Request using FSCTL_SRV_COPYCHUNK or FSCTL_SRV_COPYCHUNK_WRITE.
Reference: MS-SMB2 2.2.31.1
Fields§
§source_key: [u8; 24]A key representing the source file for the copy operation. Obtained from the server in a SRV_REQUEST_RESUME_KEY Response.
chunks: Vec<SrvCopychunkItem>An array of SRV_COPYCHUNK packets describing the ranges to be copied. The array length must equal chunk_count * size of SRV_COPYCHUNK.
Implementations§
Trait Implementations§
Source§impl BinRead for SrvCopychunkCopy
impl BinRead for SrvCopychunkCopy
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>
Read
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>
Read
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>
Read
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>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for SrvCopychunkCopy
impl BinWrite for SrvCopychunkCopy
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>
Write
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>
Write
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>
Write
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>
Write
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Debug for SrvCopychunkCopy
impl Debug for SrvCopychunkCopy
Source§impl From<SrvCopychunkCopy> for IoctlReqData
impl From<SrvCopychunkCopy> for IoctlReqData
Source§fn from(model: SrvCopychunkCopy) -> IoctlReqData
fn from(model: SrvCopychunkCopy) -> IoctlReqData
Converts to this type from the input type.
Source§impl From<SrvCopychunkCopy> for SrvCopyChunkCopyWrite
impl From<SrvCopychunkCopy> for SrvCopyChunkCopyWrite
Source§fn from(inner: SrvCopychunkCopy) -> Self
fn from(inner: SrvCopychunkCopy) -> Self
Converts to this type from the input type.
Source§impl FsctlRequest for SrvCopychunkCopy
impl FsctlRequest for SrvCopychunkCopy
const FSCTL_CODE: FsctlCodes = FsctlCodes::SrvCopychunk
type Response = SrvCopychunkResponse
Source§impl IoctlRequestContent for SrvCopychunkCopy
impl IoctlRequestContent for SrvCopychunkCopy
Source§fn get_bin_size(&self) -> u32
fn get_bin_size(&self) -> u32
Returns the size of the buffer for IOCTL requests – the size of the ENCODED data, in bytes.
Source§impl PartialEq for SrvCopychunkCopy
impl PartialEq for SrvCopychunkCopy
impl Eq for SrvCopychunkCopy
impl StructuralPartialEq for SrvCopychunkCopy
Auto Trait Implementations§
impl Freeze for SrvCopychunkCopy
impl RefUnwindSafe for SrvCopychunkCopy
impl Send for SrvCopychunkCopy
impl Sync for SrvCopychunkCopy
impl Unpin for SrvCopychunkCopy
impl UnwindSafe for SrvCopychunkCopy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more