Rollup merge of #130168 - juliusl:pr/fix-win-fs-change-time-links, r=… · qinheping/verify-rust-std@136504a (original) (raw)

`@@ -298,7 +298,7 @@ impl OpenOptionsExt for OpenOptions {

`

298

298

`` /// of the [BY_HANDLE_FILE_INFORMATION] structure.

``

299

299

`///

`

300

300

`` /// [BY_HANDLE_FILE_INFORMATION]:

``

301

``

`-

/// https://docs.microsoft.com/en-us/windows/win32/api/fileapi/ns-fileapi-by_handle_file_information

`

``

301

`+

/// https://docs.microsoft.com/windows/win32/api/fileapi/ns-fileapi-by_handle_file_information

`

302

302

`#[stable(feature = "metadata_ext", since = "1.1.0")]

`

303

303

`pub trait MetadataExt {

`

304

304

`` /// Returns the value of the dwFileAttributes field of this metadata.

``

`@@ -322,7 +322,7 @@ pub trait MetadataExt {

`

322

322

```` /// ```


`323`

`323`

`///

`

`324`

`324`

`/// [File Attribute Constants]:

`

`325`

``

`-

/// https://docs.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants

`

``

`325`

`+

/// https://docs.microsoft.com/windows/win32/fileio/file-attribute-constants

`

`326`

`326`

`#[stable(feature = "metadata_ext", since = "1.1.0")]

`

`327`

`327`

`fn file_attributes(&self) -> u32;

`

`328`

`328`

``

`@@ -351,7 +351,7 @@ pub trait MetadataExt {

`

`351`

`351`

`/// }

`

`352`

`352`

```` /// ```

353

353

`///

`

354

``

`` -

/// [FILETIME]: https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime

``

``

354

`` +

/// [FILETIME]: https://docs.microsoft.com/windows/win32/api/minwinbase/ns-minwinbase-filetime

``

355

355

`#[stable(feature = "metadata_ext", since = "1.1.0")]

`

356

356

`fn creation_time(&self) -> u64;

`

357

357

``

`@@ -386,7 +386,7 @@ pub trait MetadataExt {

`

386

386

`/// }

`

387

387

```` /// ```


`388`

`388`

`///

`

`389`

``

`` -

/// [`FILETIME`]: https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime

``

``

`389`

`` +

/// [`FILETIME`]: https://docs.microsoft.com/windows/win32/api/minwinbase/ns-minwinbase-filetime

``

`390`

`390`

`#[stable(feature = "metadata_ext", since = "1.1.0")]

`

`391`

`391`

`fn last_access_time(&self) -> u64;

`

`392`

`392`

``

`@@ -419,11 +419,11 @@ pub trait MetadataExt {

`

`419`

`419`

`/// }

`

`420`

`420`

```` /// ```

421

421

`///

`

422

``

`` -

/// [FILETIME]: https://docs.microsoft.com/en-us/windows/win32/api/minwinbase/ns-minwinbase-filetime

``

``

422

`` +

/// [FILETIME]: https://docs.microsoft.com/windows/win32/api/minwinbase/ns-minwinbase-filetime

``

423

423

`#[stable(feature = "metadata_ext", since = "1.1.0")]

`

424

424

`fn last_write_time(&self) -> u64;

`

425

425

``

426

``

`` -

/// Returns the value of the nFileSize{High,Low} fields of this

``

``

426

`` +

/// Returns the value of the nFileSize fields of this

``

427

427

`/// metadata.

`

428

428

`///

`

429

429

`/// The returned value does not have meaning for directories.

`

`@@ -462,7 +462,7 @@ pub trait MetadataExt {

`

462

462

`#[unstable(feature = "windows_by_handle", issue = "63010")]

`

463

463

`fn number_of_links(&self) -> Option;

`

464

464

``

465

``

`` -

/// Returns the value of the nFileIndex{Low,High} fields of this

``

``

465

`` +

/// Returns the value of the nFileIndex fields of this

``

466

466

`/// metadata.

`

467

467

`///

`

468

468

`` /// This will return None if the Metadata instance was created from a

``

`@@ -471,10 +471,14 @@ pub trait MetadataExt {

`

471

471

`#[unstable(feature = "windows_by_handle", issue = "63010")]

`

472

472

`fn file_index(&self) -> Option;

`

473

473

``

474

``

`-

/// Returns the change time, which is the last time file metadata was changed, such as

`

475

``

`-

/// renames, attributes, etc

`

``

474

`` +

/// Returns the value of the ChangeTime fields of this metadata.

``

476

475

`///

`

477

``

`` -

/// This will return None if the Metadata instance was not created using the FILE_BASIC_INFO type.

``

``

476

`` +

/// ChangeTime is the last time file metadata was changed, such as

``

``

477

`+

/// renames, attributes, etc.

`

``

478

`+

///

`

``

479

`` +

/// This will return None if Metadata instance was created from a call to

``

``

480

`` +

/// DirEntry::metadata or if the target_vendor is outside the current platform

``

``

481

`+

/// support for this api.

`

478

482

`#[unstable(feature = "windows_change_time", issue = "121478")]

`

479

483

`fn change_time(&self) -> Option;

`

480

484

`}

`