#[repr(u16)]pub enum Command {
Show 19 variants
Negotiate = 0,
SessionSetup = 1,
Logoff = 2,
TreeConnect = 3,
TreeDisconnect = 4,
Create = 5,
Close = 6,
Flush = 7,
Read = 8,
Write = 9,
Lock = 10,
Ioctl = 11,
Cancel = 12,
Echo = 13,
QueryDirectory = 14,
ChangeNotify = 15,
QueryInfo = 16,
SetInfo = 17,
OplockBreak = 18,
}Expand description
SMB2 command codes from MS-SMB2 section 2.2.1.
Variants§
Negotiate = 0
Negotiate protocol version and capabilities.
SessionSetup = 1
Set up an authenticated session.
Logoff = 2
Log off a session.
TreeConnect = 3
Connect to a share.
TreeDisconnect = 4
Disconnect from a share.
Create = 5
Open or create a file.
Close = 6
Close a file handle.
Flush = 7
Flush cached data to stable storage.
Read = 8
Read data from a file.
Write = 9
Write data to a file.
Lock = 10
Lock or unlock byte ranges.
Ioctl = 11
Issue a device control or file system control command.
Cancel = 12
Cancel a previously sent request.
Echo = 13
Check server liveness.
QueryDirectory = 14
Enumerate directory contents.
ChangeNotify = 15
Request change notifications on a directory.
QueryInfo = 16
Query file or filesystem information.
SetInfo = 17
Set file or filesystem information.
OplockBreak = 18
Oplock or lease break notification/acknowledgment.
Trait Implementations§
Source§impl TryFromPrimitive for Command
impl TryFromPrimitive for Command
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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