pub struct IoctlResponse {
pub ctl_code: u32,
pub file_id: FileId,
pub flags: u32,
pub output_data: Vec<u8>,
}Expand description
SMB2 IOCTL Response (MS-SMB2 section 2.2.32).
Sent by the server to return the results of an IOCTL operation.
Layout:
- StructureSize (2 bytes, must be 49)
- Reserved (2 bytes)
- CtlCode (4 bytes)
- FileId (16 bytes)
- InputOffset (4 bytes)
- InputCount (4 bytes)
- OutputOffset (4 bytes)
- OutputCount (4 bytes)
- Flags (4 bytes)
- Reserved2 (4 bytes)
- Buffer (variable – may contain both input and output data)
Fields§
§ctl_code: u32The control code echoed from the request.
file_id: FileIdThe file handle echoed from the request.
flags: u32Flags echoed from the request.
output_data: Vec<u8>Output data buffer returned by the server.
Implementations§
Source§impl IoctlResponse
impl IoctlResponse
pub const STRUCTURE_SIZE: u16 = 49
Trait Implementations§
Source§impl Clone for IoctlResponse
impl Clone for IoctlResponse
Source§fn clone(&self) -> IoctlResponse
fn clone(&self) -> IoctlResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IoctlResponse
impl Debug for IoctlResponse
impl Eq for IoctlResponse
Source§impl Pack for IoctlResponse
impl Pack for IoctlResponse
Source§fn pack(&self, cursor: &mut WriteCursor)
fn pack(&self, cursor: &mut WriteCursor)
Write this value into the cursor.
Source§impl PartialEq for IoctlResponse
impl PartialEq for IoctlResponse
Source§fn eq(&self, other: &IoctlResponse) -> bool
fn eq(&self, other: &IoctlResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IoctlResponse
Source§impl Unpack for IoctlResponse
impl Unpack for IoctlResponse
Source§fn unpack(cursor: &mut ReadCursor<'_>) -> Result<Self>
fn unpack(cursor: &mut ReadCursor<'_>) -> Result<Self>
Read a value from the cursor, advancing its position.
Auto Trait Implementations§
impl Freeze for IoctlResponse
impl RefUnwindSafe for IoctlResponse
impl Send for IoctlResponse
impl Sync for IoctlResponse
impl Unpin for IoctlResponse
impl UnsafeUnpin for IoctlResponse
impl UnwindSafe for IoctlResponse
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