pub struct CreateRequest {
pub requested_oplock_level: OplockLevel,
pub impersonation_level: ImpersonationLevel,
pub desired_access: FileAccessMask,
pub file_attributes: u32,
pub share_access: ShareAccess,
pub create_disposition: CreateDisposition,
pub create_options: u32,
pub name: String,
pub create_contexts: Vec<u8>,
}Expand description
SMB2 CREATE request (spec section 2.2.13).
Sent by the client to open or create a file on the server. The buffer contains the filename encoded as UTF-16LE, optionally followed by create context data.
Fields§
§requested_oplock_level: OplockLevelRequested oplock level.
impersonation_level: ImpersonationLevelImpersonation level.
desired_access: FileAccessMaskDesired access rights.
file_attributes: u32File attributes for create/open.
Sharing mode.
create_disposition: CreateDispositionDisposition: what to do if file exists/does not exist.
create_options: u32Create options flags.
name: StringThe filename to create or open.
create_contexts: Vec<u8>Raw create context bytes (unparsed).
Implementations§
Source§impl CreateRequest
impl CreateRequest
pub const STRUCTURE_SIZE: u16 = 57
Trait Implementations§
Source§impl Clone for CreateRequest
impl Clone for CreateRequest
Source§fn clone(&self) -> CreateRequest
fn clone(&self) -> CreateRequest
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 CreateRequest
impl Debug for CreateRequest
Source§impl Pack for CreateRequest
impl Pack for CreateRequest
Source§fn pack(&self, cursor: &mut WriteCursor)
fn pack(&self, cursor: &mut WriteCursor)
Write this value into the cursor.
Source§impl PartialEq for CreateRequest
impl PartialEq for CreateRequest
Source§fn eq(&self, other: &CreateRequest) -> bool
fn eq(&self, other: &CreateRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Unpack for CreateRequest
impl Unpack for CreateRequest
Source§fn unpack(cursor: &mut ReadCursor<'_>) -> Result<Self>
fn unpack(cursor: &mut ReadCursor<'_>) -> Result<Self>
Read a value from the cursor, advancing its position.
impl Eq for CreateRequest
impl StructuralPartialEq for CreateRequest
Auto Trait Implementations§
impl Freeze for CreateRequest
impl RefUnwindSafe for CreateRequest
impl Send for CreateRequest
impl Sync for CreateRequest
impl Unpin for CreateRequest
impl UnsafeUnpin for CreateRequest
impl UnwindSafe for CreateRequest
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