[−][src]Struct lnk::ShellLinkHeader
A ShellLinkHeader structure (section 2.1), which contains identification information, timestamps, and flags that specify the presence of optional structures.
Implementations
impl ShellLinkHeader
[src]
pub fn link_flags(&self) -> &LinkFlags
[src]
Get the link flags
pub fn set_link_flags(&mut self, link_flags: LinkFlags)
[src]
Set the link flags
pub fn update_link_flags(&mut self, link_flags: LinkFlags, value: bool)
[src]
Set some 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]
fn clone(&self) -> ShellLinkHeader
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ShellLinkHeader
[src]
impl Debug for ShellLinkHeader
[src]
impl Default for ShellLinkHeader
[src]
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.
impl<'_> TryFrom<&'_ [u8]> for ShellLinkHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for ShellLinkHeader
impl Send for ShellLinkHeader
impl Sync for ShellLinkHeader
impl Unpin for ShellLinkHeader
impl UnwindSafe for ShellLinkHeader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,