[][src]Struct lnk::ShellLinkHeader

pub struct ShellLinkHeader { /* fields omitted */ }

A ShellLinkHeader structure (section 2.1), which contains identification information, timestamps, and flags that specify the presence of optional structures.

Methods

impl ShellLinkHeader[src]

Get the link flags

Set the link flags

pub fn file_attributes(&self) -> &FileAttributeFlags[src]

Get the file attributes

pub fn set_file_attributes(&mut self, file_attributes: FileAttributeFlags)[src]

Set the file attributes

pub fn creation_time(&self) -> u64[src]

Get the file creation time

pub fn set_creation_time(&mut self, creation_time: u64)[src]

Set the file creation time

pub fn access_time(&self) -> u64[src]

Get the file access time

pub fn set_access_time(&mut self, access_time: u64)[src]

Set the file access time

pub fn write_time(&self) -> u64[src]

Get the file write time

pub fn set_write_time(&mut self, write_time: u64)[src]

Set the file write time

pub fn file_size(&self) -> u32[src]

The file size, or at least the least significant 32-bits of the size

pub fn set_file_size(&mut self, file_size: u32)[src]

Set the file size, or if bigger then 32-bits, set the least significant 32-bits

pub fn icon_index(&self) -> i32[src]

Get the icon index

pub fn set_icon_index(&mut self, icon_index: i32)[src]

Set the icon index

pub fn show_command(&self) -> &ShowCommand[src]

Get the show command

pub fn set_show_command(&mut self, show_command: ShowCommand)[src]

Set the shortcut show command

pub fn hotkey(&self) -> &HotkeyFlags[src]

Get the hotkey flags

pub fn hotkey_mut(&mut self) -> &mut HotkeyFlags[src]

Get a mutable pointer to the hotkey flags

Trait Implementations

impl Clone for ShellLinkHeader[src]

impl Copy for ShellLinkHeader[src]

impl Debug for ShellLinkHeader[src]

impl Default for ShellLinkHeader[src]

fn default() -> Self[src]

Create a new, blank, ShellLinkHeader

impl<'_> From<&'_ [u8]> for ShellLinkHeader[src]

fn from(data: &[u8]) -> Self[src]

Read data into this struct from a [u8].

impl Into<[u8; 76]> for ShellLinkHeader[src]

fn into(self) -> [u8; 76][src]

Write the data in this header to a [u8] for writing to the output file.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.