@@ -46,7 +46,7 @@ pub struct ScsiRequestBuilder<'a> {
46
46
impl ScsiRequestBuilder < ' _ > {
47
47
/// Creates a new instance with the specified data direction and alignment.
48
48
///
49
- /// # Parameters
49
+ /// # Arguments
50
50
/// - `direction`: Specifies the direction of data transfer (READ, WRITE, or BIDIRECTIONAL).
51
51
/// - `io_align`: Specifies the required alignment for data buffers. (SCSI Controller specific!)
52
52
#[ must_use]
@@ -84,7 +84,7 @@ impl ScsiRequestBuilder<'_> {
84
84
/// - READ
85
85
/// - MODE_SENSE
86
86
///
87
- /// # Parameters
87
+ /// # Arguments
88
88
/// - `io_align`: Specifies the required alignment for data buffers.
89
89
#[ must_use]
90
90
pub fn read ( io_align : u32 ) -> Self {
@@ -97,7 +97,7 @@ impl ScsiRequestBuilder<'_> {
97
97
/// - WRITE
98
98
/// - MODE_SELECT
99
99
///
100
- /// # Parameters
100
+ /// # Arguments
101
101
/// - `io_align`: Specifies the required alignment for data buffers.
102
102
#[ must_use]
103
103
pub fn write ( io_align : u32 ) -> Self {
@@ -109,7 +109,7 @@ impl ScsiRequestBuilder<'_> {
109
109
/// Some examples of SCSI bidirectional commands are:
110
110
/// - SEND DIAGNOSTIC
111
111
///
112
- /// # Parameters
112
+ /// # Arguments
113
113
/// - `io_align`: Specifies the required alignment for data buffers.
114
114
#[ must_use]
115
115
pub fn bidirectional ( io_align : u32 ) -> Self {
@@ -120,7 +120,7 @@ impl ScsiRequestBuilder<'_> {
120
120
impl < ' a > ScsiRequestBuilder < ' a > {
121
121
/// Sets a timeout for the SCSI request.
122
122
///
123
- /// # Parameters
123
+ /// # Arguments
124
124
/// - `timeout`: A [`Duration`] representing the maximum time allowed for the request.
125
125
/// The value is converted to 100-nanosecond units.
126
126
///
@@ -139,7 +139,7 @@ impl<'a> ScsiRequestBuilder<'a> {
139
139
140
140
/// Uses a user-supplied buffer for reading data from the device.
141
141
///
142
- /// # Parameters
142
+ /// # Arguments
143
143
/// - `bfr`: A mutable reference to an [`AlignedBuffer`] that will be used to store data read from the device.
144
144
///
145
145
/// # Returns
@@ -159,7 +159,7 @@ impl<'a> ScsiRequestBuilder<'a> {
159
159
160
160
/// Adds a newly allocated read buffer to the built SCSI request.
161
161
///
162
- /// # Parameters
162
+ /// # Arguments
163
163
/// - `len`: The size of the buffer (in bytes) to allocate for receiving data.
164
164
///
165
165
/// # Returns
@@ -177,7 +177,7 @@ impl<'a> ScsiRequestBuilder<'a> {
177
177
178
178
/// Adds a newly allocated sense buffer to the built SCSI request.
179
179
///
180
- /// # Parameters
180
+ /// # Arguments
181
181
/// - `len`: The size of the buffer (in bytes) to allocate for receiving sense data.
182
182
///
183
183
/// # Returns
@@ -195,7 +195,7 @@ impl<'a> ScsiRequestBuilder<'a> {
195
195
196
196
/// Uses a user-supplied buffer for writing data to the device.
197
197
///
198
- /// # Parameters
198
+ /// # Arguments
199
199
/// - `bfr`: A mutable reference to an [`AlignedBuffer`] containing the data to be written to the device.
200
200
///
201
201
/// # Returns
@@ -216,7 +216,7 @@ impl<'a> ScsiRequestBuilder<'a> {
216
216
/// Adds a newly allocated write buffer to the built SCSI request that is filled from the
217
217
/// given data buffer. (Done for memory alignment and lifetime purposes)
218
218
///
219
- /// # Parameters
219
+ /// # Arguments
220
220
/// - `data`: A slice of bytes representing the data to be written.
221
221
///
222
222
/// # Returns
@@ -235,7 +235,7 @@ impl<'a> ScsiRequestBuilder<'a> {
235
235
236
236
/// Uses a user-supplied Command Data Block (CDB) buffer.
237
237
///
238
- /// # Parameters
238
+ /// # Arguments
239
239
/// - `data`: A mutable reference to an [`AlignedBuffer`] containing the CDB to be sent to the device.
240
240
///
241
241
/// # Returns
@@ -259,7 +259,7 @@ impl<'a> ScsiRequestBuilder<'a> {
259
259
/// Adds a newly allocated Command Data Block (CDB) buffer to the built SCSI request that is filled from the
260
260
/// given data buffer. (Done for memory alignment and lifetime purposes)
261
261
///
262
- /// # Parameters
262
+ /// # Arguments
263
263
/// - `data`: A slice of bytes representing the command to be sent.
264
264
///
265
265
/// # Returns
0 commit comments