CreateOptions

Struct CreateOptions 

Source
pub struct CreateOptions { /* private fields */ }
Expand description

Options to be applied when creating or opening the file.

Reference: MS-SMB2 2.2.13

Implementations§

Source§

impl CreateOptions

Source

pub const fn new() -> Self

Returns an instance with zero initialized data.

Source§

impl CreateOptions

Source

pub const fn into_bytes(self) -> [u8; 4]

Returns the underlying bits.

§Layout

The returned byte array is layed out in the same way as described here.

Source

pub const fn from_bytes(bytes: [u8; 4]) -> Self

Converts the given bytes directly into the bitfield struct.

Source§

impl CreateOptions

Source

pub fn directory_file(&self) -> <bool as Specifier>::InOut

Returns the value of directory_file. The file being created or opened is a directory file

Source

pub fn directory_file_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of directory_file.

#Errors

If the returned value contains an invalid bit pattern for directory_file. The file being created or opened is a directory file

Source

pub fn with_directory_file(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of directory_file set to the given value.

#Panics

If the given value is out of bounds for directory_file. The file being created or opened is a directory file

Source

pub fn with_directory_file_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of directory_file set to the given value.

#Errors

If the given value is out of bounds for directory_file. The file being created or opened is a directory file

Source

pub fn set_directory_file(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of directory_file to the given value.

#Panics

If the given value is out of bounds for directory_file. The file being created or opened is a directory file

Source

pub fn set_directory_file_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of directory_file to the given value.

#Errors

If the given value is out of bounds for directory_file. The file being created or opened is a directory file

Source

pub fn write_through(&self) -> <bool as Specifier>::InOut

Returns the value of write_through. The server performs file write-through

Source

pub fn write_through_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of write_through.

#Errors

If the returned value contains an invalid bit pattern for write_through. The server performs file write-through

Source

pub fn with_write_through(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of write_through set to the given value.

#Panics

If the given value is out of bounds for write_through. The server performs file write-through

Source

pub fn with_write_through_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of write_through set to the given value.

#Errors

If the given value is out of bounds for write_through. The server performs file write-through

Source

pub fn set_write_through(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of write_through to the given value.

#Panics

If the given value is out of bounds for write_through. The server performs file write-through

Source

pub fn set_write_through_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of write_through to the given value.

#Errors

If the given value is out of bounds for write_through. The server performs file write-through

Source

pub fn sequential_only(&self) -> <bool as Specifier>::InOut

Returns the value of sequential_only. Application intends to read or write at sequential offsets

Source

pub fn sequential_only_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of sequential_only.

#Errors

If the returned value contains an invalid bit pattern for sequential_only. Application intends to read or write at sequential offsets

Source

pub fn with_sequential_only(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of sequential_only set to the given value.

#Panics

If the given value is out of bounds for sequential_only. Application intends to read or write at sequential offsets

Source

pub fn with_sequential_only_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of sequential_only set to the given value.

#Errors

If the given value is out of bounds for sequential_only. Application intends to read or write at sequential offsets

Source

pub fn set_sequential_only(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of sequential_only to the given value.

#Panics

If the given value is out of bounds for sequential_only. Application intends to read or write at sequential offsets

Source

pub fn set_sequential_only_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of sequential_only to the given value.

#Errors

If the given value is out of bounds for sequential_only. Application intends to read or write at sequential offsets

Source

pub fn no_intermediate_buffering(&self) -> <bool as Specifier>::InOut

Returns the value of no_intermediate_buffering. File buffering is not performed on this open

Source

pub fn no_intermediate_buffering_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of no_intermediate_buffering.

#Errors

If the returned value contains an invalid bit pattern for no_intermediate_buffering. File buffering is not performed on this open

Source

pub fn with_no_intermediate_buffering( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of no_intermediate_buffering set to the given value.

#Panics

If the given value is out of bounds for no_intermediate_buffering. File buffering is not performed on this open

Source

pub fn with_no_intermediate_buffering_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of no_intermediate_buffering set to the given value.

#Errors

If the given value is out of bounds for no_intermediate_buffering. File buffering is not performed on this open

Source

pub fn set_no_intermediate_buffering( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of no_intermediate_buffering to the given value.

#Panics

If the given value is out of bounds for no_intermediate_buffering. File buffering is not performed on this open

Source

pub fn set_no_intermediate_buffering_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of no_intermediate_buffering to the given value.

#Errors

If the given value is out of bounds for no_intermediate_buffering. File buffering is not performed on this open

Source

pub fn synchronous_io_alert(&self) -> <bool as Specifier>::InOut

Returns the value of synchronous_io_alert. Should be set to 0 and is ignored by the server

Source

pub fn synchronous_io_alert_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of synchronous_io_alert.

#Errors

If the returned value contains an invalid bit pattern for synchronous_io_alert. Should be set to 0 and is ignored by the server

Source

pub fn with_synchronous_io_alert( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of synchronous_io_alert set to the given value.

#Panics

If the given value is out of bounds for synchronous_io_alert. Should be set to 0 and is ignored by the server

Source

pub fn with_synchronous_io_alert_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of synchronous_io_alert set to the given value.

#Errors

If the given value is out of bounds for synchronous_io_alert. Should be set to 0 and is ignored by the server

Source

pub fn set_synchronous_io_alert(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of synchronous_io_alert to the given value.

#Panics

If the given value is out of bounds for synchronous_io_alert. Should be set to 0 and is ignored by the server

Source

pub fn set_synchronous_io_alert_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of synchronous_io_alert to the given value.

#Errors

If the given value is out of bounds for synchronous_io_alert. Should be set to 0 and is ignored by the server

Source

pub fn synchronous_io_nonalert(&self) -> <bool as Specifier>::InOut

Returns the value of synchronous_io_nonalert. Should be set to 0 and is ignored by the server

Source

pub fn synchronous_io_nonalert_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of synchronous_io_nonalert.

#Errors

If the returned value contains an invalid bit pattern for synchronous_io_nonalert. Should be set to 0 and is ignored by the server

Source

pub fn with_synchronous_io_nonalert( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of synchronous_io_nonalert set to the given value.

#Panics

If the given value is out of bounds for synchronous_io_nonalert. Should be set to 0 and is ignored by the server

Source

pub fn with_synchronous_io_nonalert_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of synchronous_io_nonalert set to the given value.

#Errors

If the given value is out of bounds for synchronous_io_nonalert. Should be set to 0 and is ignored by the server

Source

pub fn set_synchronous_io_nonalert( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of synchronous_io_nonalert to the given value.

#Panics

If the given value is out of bounds for synchronous_io_nonalert. Should be set to 0 and is ignored by the server

Source

pub fn set_synchronous_io_nonalert_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of synchronous_io_nonalert to the given value.

#Errors

If the given value is out of bounds for synchronous_io_nonalert. Should be set to 0 and is ignored by the server

Source

pub fn non_directory_file(&self) -> <bool as Specifier>::InOut

Returns the value of non_directory_file. If the name matches an existing directory file, the server must fail the request

Source

pub fn non_directory_file_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of non_directory_file.

#Errors

If the returned value contains an invalid bit pattern for non_directory_file. If the name matches an existing directory file, the server must fail the request

Source

pub fn with_non_directory_file( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of non_directory_file set to the given value.

#Panics

If the given value is out of bounds for non_directory_file. If the name matches an existing directory file, the server must fail the request

Source

pub fn with_non_directory_file_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of non_directory_file set to the given value.

#Errors

If the given value is out of bounds for non_directory_file. If the name matches an existing directory file, the server must fail the request

Source

pub fn set_non_directory_file(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of non_directory_file to the given value.

#Panics

If the given value is out of bounds for non_directory_file. If the name matches an existing directory file, the server must fail the request

Source

pub fn set_non_directory_file_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of non_directory_file to the given value.

#Errors

If the given value is out of bounds for non_directory_file. If the name matches an existing directory file, the server must fail the request

Source

pub fn complete_if_oplocked(&self) -> <bool as Specifier>::InOut

Returns the value of complete_if_oplocked. Should be set to 0 and is ignored by the server

Source

pub fn complete_if_oplocked_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of complete_if_oplocked.

#Errors

If the returned value contains an invalid bit pattern for complete_if_oplocked. Should be set to 0 and is ignored by the server

Source

pub fn with_complete_if_oplocked( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of complete_if_oplocked set to the given value.

#Panics

If the given value is out of bounds for complete_if_oplocked. Should be set to 0 and is ignored by the server

Source

pub fn with_complete_if_oplocked_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of complete_if_oplocked set to the given value.

#Errors

If the given value is out of bounds for complete_if_oplocked. Should be set to 0 and is ignored by the server

Source

pub fn set_complete_if_oplocked(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of complete_if_oplocked to the given value.

#Panics

If the given value is out of bounds for complete_if_oplocked. Should be set to 0 and is ignored by the server

Source

pub fn set_complete_if_oplocked_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of complete_if_oplocked to the given value.

#Errors

If the given value is out of bounds for complete_if_oplocked. Should be set to 0 and is ignored by the server

Source

pub fn no_ea_knowledge(&self) -> <bool as Specifier>::InOut

Returns the value of no_ea_knowledge. The caller does not understand how to handle extended attributes

Source

pub fn no_ea_knowledge_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of no_ea_knowledge.

#Errors

If the returned value contains an invalid bit pattern for no_ea_knowledge. The caller does not understand how to handle extended attributes

Source

pub fn with_no_ea_knowledge(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of no_ea_knowledge set to the given value.

#Panics

If the given value is out of bounds for no_ea_knowledge. The caller does not understand how to handle extended attributes

Source

pub fn with_no_ea_knowledge_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of no_ea_knowledge set to the given value.

#Errors

If the given value is out of bounds for no_ea_knowledge. The caller does not understand how to handle extended attributes

Source

pub fn set_no_ea_knowledge(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of no_ea_knowledge to the given value.

#Panics

If the given value is out of bounds for no_ea_knowledge. The caller does not understand how to handle extended attributes

Source

pub fn set_no_ea_knowledge_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of no_ea_knowledge to the given value.

#Errors

If the given value is out of bounds for no_ea_knowledge. The caller does not understand how to handle extended attributes

Source

pub fn open_remote_instance(&self) -> <bool as Specifier>::InOut

Returns the value of open_remote_instance. Should be set to 0 and is ignored by the server

Source

pub fn open_remote_instance_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of open_remote_instance.

#Errors

If the returned value contains an invalid bit pattern for open_remote_instance. Should be set to 0 and is ignored by the server

Source

pub fn with_open_remote_instance( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of open_remote_instance set to the given value.

#Panics

If the given value is out of bounds for open_remote_instance. Should be set to 0 and is ignored by the server

Source

pub fn with_open_remote_instance_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of open_remote_instance set to the given value.

#Errors

If the given value is out of bounds for open_remote_instance. Should be set to 0 and is ignored by the server

Source

pub fn set_open_remote_instance(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of open_remote_instance to the given value.

#Panics

If the given value is out of bounds for open_remote_instance. Should be set to 0 and is ignored by the server

Source

pub fn set_open_remote_instance_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of open_remote_instance to the given value.

#Errors

If the given value is out of bounds for open_remote_instance. Should be set to 0 and is ignored by the server

Source

pub fn random_access(&self) -> <bool as Specifier>::InOut

Returns the value of random_access. Application intends to read or write at random offsets

Source

pub fn random_access_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of random_access.

#Errors

If the returned value contains an invalid bit pattern for random_access. Application intends to read or write at random offsets

Source

pub fn with_random_access(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of random_access set to the given value.

#Panics

If the given value is out of bounds for random_access. Application intends to read or write at random offsets

Source

pub fn with_random_access_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of random_access set to the given value.

#Errors

If the given value is out of bounds for random_access. Application intends to read or write at random offsets

Source

pub fn set_random_access(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of random_access to the given value.

#Panics

If the given value is out of bounds for random_access. Application intends to read or write at random offsets

Source

pub fn set_random_access_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of random_access to the given value.

#Errors

If the given value is out of bounds for random_access. Application intends to read or write at random offsets

Source

pub fn delete_on_close(&self) -> <bool as Specifier>::InOut

Returns the value of delete_on_close. The file must be automatically deleted when the last open request is closed

Source

pub fn delete_on_close_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of delete_on_close.

#Errors

If the returned value contains an invalid bit pattern for delete_on_close. The file must be automatically deleted when the last open request is closed

Source

pub fn with_delete_on_close(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of delete_on_close set to the given value.

#Panics

If the given value is out of bounds for delete_on_close. The file must be automatically deleted when the last open request is closed

Source

pub fn with_delete_on_close_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of delete_on_close set to the given value.

#Errors

If the given value is out of bounds for delete_on_close. The file must be automatically deleted when the last open request is closed

Source

pub fn set_delete_on_close(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of delete_on_close to the given value.

#Panics

If the given value is out of bounds for delete_on_close. The file must be automatically deleted when the last open request is closed

Source

pub fn set_delete_on_close_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of delete_on_close to the given value.

#Errors

If the given value is out of bounds for delete_on_close. The file must be automatically deleted when the last open request is closed

Source

pub fn open_by_file_id(&self) -> <bool as Specifier>::InOut

Returns the value of open_by_file_id. Should be set to 0 and the server must fail the request if set

Source

pub fn open_by_file_id_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of open_by_file_id.

#Errors

If the returned value contains an invalid bit pattern for open_by_file_id. Should be set to 0 and the server must fail the request if set

Source

pub fn with_open_by_file_id(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of open_by_file_id set to the given value.

#Panics

If the given value is out of bounds for open_by_file_id. Should be set to 0 and the server must fail the request if set

Source

pub fn with_open_by_file_id_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of open_by_file_id set to the given value.

#Errors

If the given value is out of bounds for open_by_file_id. Should be set to 0 and the server must fail the request if set

Source

pub fn set_open_by_file_id(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of open_by_file_id to the given value.

#Panics

If the given value is out of bounds for open_by_file_id. Should be set to 0 and the server must fail the request if set

Source

pub fn set_open_by_file_id_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of open_by_file_id to the given value.

#Errors

If the given value is out of bounds for open_by_file_id. Should be set to 0 and the server must fail the request if set

Source

pub fn open_for_backup_intent(&self) -> <bool as Specifier>::InOut

Returns the value of open_for_backup_intent. The file is being opened for backup intent

Source

pub fn open_for_backup_intent_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of open_for_backup_intent.

#Errors

If the returned value contains an invalid bit pattern for open_for_backup_intent. The file is being opened for backup intent

Source

pub fn with_open_for_backup_intent( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of open_for_backup_intent set to the given value.

#Panics

If the given value is out of bounds for open_for_backup_intent. The file is being opened for backup intent

Source

pub fn with_open_for_backup_intent_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of open_for_backup_intent set to the given value.

#Errors

If the given value is out of bounds for open_for_backup_intent. The file is being opened for backup intent

Source

pub fn set_open_for_backup_intent( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of open_for_backup_intent to the given value.

#Panics

If the given value is out of bounds for open_for_backup_intent. The file is being opened for backup intent

Source

pub fn set_open_for_backup_intent_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of open_for_backup_intent to the given value.

#Errors

If the given value is out of bounds for open_for_backup_intent. The file is being opened for backup intent

Source

pub fn no_compression(&self) -> <bool as Specifier>::InOut

Returns the value of no_compression. The file cannot be compressed

Source

pub fn no_compression_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of no_compression.

#Errors

If the returned value contains an invalid bit pattern for no_compression. The file cannot be compressed

Source

pub fn with_no_compression(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of no_compression set to the given value.

#Panics

If the given value is out of bounds for no_compression. The file cannot be compressed

Source

pub fn with_no_compression_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of no_compression set to the given value.

#Errors

If the given value is out of bounds for no_compression. The file cannot be compressed

Source

pub fn set_no_compression(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of no_compression to the given value.

#Panics

If the given value is out of bounds for no_compression. The file cannot be compressed

Source

pub fn set_no_compression_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of no_compression to the given value.

#Errors

If the given value is out of bounds for no_compression. The file cannot be compressed

Source

pub fn open_requiring_oplock(&self) -> <bool as Specifier>::InOut

Returns the value of open_requiring_oplock. Should be set to 0 and is ignored by the server

Source

pub fn open_requiring_oplock_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of open_requiring_oplock.

#Errors

If the returned value contains an invalid bit pattern for open_requiring_oplock. Should be set to 0 and is ignored by the server

Source

pub fn with_open_requiring_oplock( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of open_requiring_oplock set to the given value.

#Panics

If the given value is out of bounds for open_requiring_oplock. Should be set to 0 and is ignored by the server

Source

pub fn with_open_requiring_oplock_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of open_requiring_oplock set to the given value.

#Errors

If the given value is out of bounds for open_requiring_oplock. Should be set to 0 and is ignored by the server

Source

pub fn set_open_requiring_oplock(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of open_requiring_oplock to the given value.

#Panics

If the given value is out of bounds for open_requiring_oplock. Should be set to 0 and is ignored by the server

Source

pub fn set_open_requiring_oplock_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of open_requiring_oplock to the given value.

#Errors

If the given value is out of bounds for open_requiring_oplock. Should be set to 0 and is ignored by the server

Source

pub fn disallow_exclusive(&self) -> <bool as Specifier>::InOut

Returns the value of disallow_exclusive. Should be set to 0 and is ignored by the server

Source

pub fn disallow_exclusive_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of disallow_exclusive.

#Errors

If the returned value contains an invalid bit pattern for disallow_exclusive. Should be set to 0 and is ignored by the server

Source

pub fn with_disallow_exclusive( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of disallow_exclusive set to the given value.

#Panics

If the given value is out of bounds for disallow_exclusive. Should be set to 0 and is ignored by the server

Source

pub fn with_disallow_exclusive_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of disallow_exclusive set to the given value.

#Errors

If the given value is out of bounds for disallow_exclusive. Should be set to 0 and is ignored by the server

Source

pub fn set_disallow_exclusive(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of disallow_exclusive to the given value.

#Panics

If the given value is out of bounds for disallow_exclusive. Should be set to 0 and is ignored by the server

Source

pub fn set_disallow_exclusive_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of disallow_exclusive to the given value.

#Errors

If the given value is out of bounds for disallow_exclusive. Should be set to 0 and is ignored by the server

Source

pub fn reserve_opfilter(&self) -> <bool as Specifier>::InOut

Returns the value of reserve_opfilter. Should be set to 0 and the server must fail the request if set

Source

pub fn reserve_opfilter_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of reserve_opfilter.

#Errors

If the returned value contains an invalid bit pattern for reserve_opfilter. Should be set to 0 and the server must fail the request if set

Source

pub fn with_reserve_opfilter(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of reserve_opfilter set to the given value.

#Panics

If the given value is out of bounds for reserve_opfilter. Should be set to 0 and the server must fail the request if set

Source

pub fn with_reserve_opfilter_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of reserve_opfilter set to the given value.

#Errors

If the given value is out of bounds for reserve_opfilter. Should be set to 0 and the server must fail the request if set

Source

pub fn set_reserve_opfilter(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of reserve_opfilter to the given value.

#Panics

If the given value is out of bounds for reserve_opfilter. Should be set to 0 and the server must fail the request if set

Source

pub fn set_reserve_opfilter_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of reserve_opfilter to the given value.

#Errors

If the given value is out of bounds for reserve_opfilter. Should be set to 0 and the server must fail the request if set

Source

pub fn open_reparse_point(&self) -> <bool as Specifier>::InOut

Returns the value of open_reparse_point. If the file is a reparse point, open the reparse point itself

Source

pub fn open_reparse_point_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of open_reparse_point.

#Errors

If the returned value contains an invalid bit pattern for open_reparse_point. If the file is a reparse point, open the reparse point itself

Source

pub fn with_open_reparse_point( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of open_reparse_point set to the given value.

#Panics

If the given value is out of bounds for open_reparse_point. If the file is a reparse point, open the reparse point itself

Source

pub fn with_open_reparse_point_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of open_reparse_point set to the given value.

#Errors

If the given value is out of bounds for open_reparse_point. If the file is a reparse point, open the reparse point itself

Source

pub fn set_open_reparse_point(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of open_reparse_point to the given value.

#Panics

If the given value is out of bounds for open_reparse_point. If the file is a reparse point, open the reparse point itself

Source

pub fn set_open_reparse_point_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of open_reparse_point to the given value.

#Errors

If the given value is out of bounds for open_reparse_point. If the file is a reparse point, open the reparse point itself

Source

pub fn open_no_recall(&self) -> <bool as Specifier>::InOut

Returns the value of open_no_recall. In HSM environment, the file should not be recalled from tertiary storage

Source

pub fn open_no_recall_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of open_no_recall.

#Errors

If the returned value contains an invalid bit pattern for open_no_recall. In HSM environment, the file should not be recalled from tertiary storage

Source

pub fn with_open_no_recall(self, new_val: <bool as Specifier>::InOut) -> Self

Returns a copy of the bitfield with the value of open_no_recall set to the given value.

#Panics

If the given value is out of bounds for open_no_recall. In HSM environment, the file should not be recalled from tertiary storage

Source

pub fn with_open_no_recall_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of open_no_recall set to the given value.

#Errors

If the given value is out of bounds for open_no_recall. In HSM environment, the file should not be recalled from tertiary storage

Source

pub fn set_open_no_recall(&mut self, new_val: <bool as Specifier>::InOut)

Sets the value of open_no_recall to the given value.

#Panics

If the given value is out of bounds for open_no_recall. In HSM environment, the file should not be recalled from tertiary storage

Source

pub fn set_open_no_recall_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of open_no_recall to the given value.

#Errors

If the given value is out of bounds for open_no_recall. In HSM environment, the file should not be recalled from tertiary storage

Source

pub fn open_for_free_space_query(&self) -> <bool as Specifier>::InOut

Returns the value of open_for_free_space_query. Open file to query for free space

Source

pub fn open_for_free_space_query_or_err( &self, ) -> Result<<bool as Specifier>::InOut, InvalidBitPattern<<bool as Specifier>::Bytes>>

Returns the value of open_for_free_space_query.

#Errors

If the returned value contains an invalid bit pattern for open_for_free_space_query. Open file to query for free space

Source

pub fn with_open_for_free_space_query( self, new_val: <bool as Specifier>::InOut, ) -> Self

Returns a copy of the bitfield with the value of open_for_free_space_query set to the given value.

#Panics

If the given value is out of bounds for open_for_free_space_query. Open file to query for free space

Source

pub fn with_open_for_free_space_query_checked( self, new_val: <bool as Specifier>::InOut, ) -> Result<Self, OutOfBounds>

Returns a copy of the bitfield with the value of open_for_free_space_query set to the given value.

#Errors

If the given value is out of bounds for open_for_free_space_query. Open file to query for free space

Source

pub fn set_open_for_free_space_query( &mut self, new_val: <bool as Specifier>::InOut, )

Sets the value of open_for_free_space_query to the given value.

#Panics

If the given value is out of bounds for open_for_free_space_query. Open file to query for free space

Source

pub fn set_open_for_free_space_query_checked( &mut self, new_val: <bool as Specifier>::InOut, ) -> Result<(), OutOfBounds>

Sets the value of open_for_free_space_query to the given value.

#Errors

If the given value is out of bounds for open_for_free_space_query. Open file to query for free space

Trait Implementations§

Source§

impl BinRead for CreateOptions

Source§

type Args<'__binrw_generated_args_lifetime> = ()

The type used for the args parameter of read_args() and read_options(). Read more
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>

Read Self from the reader using the given Endian and arguments. Read more
Source§

fn read<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments. Read more
Source§

fn read_be<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming big-endian byte order. Read more
Source§

fn read_le<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read Self from the reader using default arguments and assuming little-endian byte order. Read more
Source§

fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
where R: Read + Seek, Self::Args<'a>: for<'a> Required,

Read T from the reader assuming native-endian byte order. Read more
Source§

fn read_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek, Self: ReadEndian,

Read Self from the reader using the given arguments. Read more
Source§

fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming big-endian byte order, using the given arguments. Read more
Source§

fn read_le_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read Self from the reader, assuming little-endian byte order, using the given arguments. Read more
Source§

fn read_ne_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
where R: Read + Seek,

Read T from the reader, assuming native-endian byte order, using the given arguments. Read more
Source§

impl BinWrite for CreateOptions

Source§

type Args<'__binrw_generated_args_lifetime> = ()

The type used for the args parameter of write_args() and write_options(). Read more
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<()>

Write Self to the writer using the given Endian and arguments. Read more
Source§

fn write<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self: WriteEndian, Self::Args<'a>: for<'a> Required,

Write Self to the writer using default arguments. Read more
Source§

fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming big-endian byte order. Read more
Source§

fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming little-endian byte order. Read more
Source§

fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write + Seek, Self::Args<'a>: for<'a> Required,

Write Self to the writer assuming native-endian byte order. Read more
Source§

fn write_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek, Self: WriteEndian,

Write Self to the writer using the given arguments. Read more
Source§

fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming big-endian byte order, using the given arguments. Read more
Source§

fn write_le_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming little-endian byte order, using the given arguments. Read more
Source§

fn write_ne_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
where W: Write + Seek,

Write Self to the writer, assuming native-endian byte order, using the given arguments. Read more
Source§

impl CheckTotalSizeMultipleOf8 for CreateOptions

Source§

type Size = TotalSize<[(); 0]>

Source§

impl Clone for CreateOptions

Source§

fn clone(&self) -> CreateOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CreateOptions

Source§

fn fmt(&self, __bf_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CreateOptions

Source§

fn default() -> CreateOptions

Returns the “default value” for a type. Read more
Source§

impl PartialEq for CreateOptions

Source§

fn eq(&self, other: &CreateOptions) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl ReadEndian for CreateOptions

Source§

const ENDIAN: EndianKind = binrw::meta::EndianKind::None

The endianness of the type.
Source§

impl WriteEndian for CreateOptions

Source§

const ENDIAN: EndianKind = binrw::meta::EndianKind::None

The endianness of the type.
Source§

impl Copy for CreateOptions

Source§

impl Eq for CreateOptions

Source§

impl StructuralPartialEq for CreateOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V