pub struct ShellLinkHeader { /* private fields */ }
Expand description
A ShellLinkHeader structure (section 2.1), which contains identification information, timestamps, and flags that specify the presence of optional structures.
Implementations§
Source§impl ShellLinkHeader
impl ShellLinkHeader
Sourcepub fn link_flags(&self) -> &LinkFlags
pub fn link_flags(&self) -> &LinkFlags
Get the link flags
Sourcepub fn set_link_flags(&mut self, link_flags: LinkFlags)
pub fn set_link_flags(&mut self, link_flags: LinkFlags)
Set the link flags
Sourcepub fn update_link_flags(&mut self, link_flags: LinkFlags, value: bool)
pub fn update_link_flags(&mut self, link_flags: LinkFlags, value: bool)
Set some link flags
Sourcepub fn file_attributes(&self) -> &FileAttributeFlags
pub fn file_attributes(&self) -> &FileAttributeFlags
Get the file attributes
Sourcepub fn set_file_attributes(&mut self, file_attributes: FileAttributeFlags)
pub fn set_file_attributes(&mut self, file_attributes: FileAttributeFlags)
Set the file attributes
Sourcepub fn creation_time(&self) -> u64
pub fn creation_time(&self) -> u64
Get the file creation time
Sourcepub fn set_creation_time(&mut self, creation_time: u64)
pub fn set_creation_time(&mut self, creation_time: u64)
Set the file creation time
Sourcepub fn access_time(&self) -> u64
pub fn access_time(&self) -> u64
Get the file access time
Sourcepub fn set_access_time(&mut self, access_time: u64)
pub fn set_access_time(&mut self, access_time: u64)
Set the file access time
Sourcepub fn write_time(&self) -> u64
pub fn write_time(&self) -> u64
Get the file write time
Sourcepub fn set_write_time(&mut self, write_time: u64)
pub fn set_write_time(&mut self, write_time: u64)
Set the file write time
Sourcepub fn file_size(&self) -> u32
pub fn file_size(&self) -> u32
The file size, or at least the least significant 32-bits of the size
Sourcepub fn set_file_size(&mut self, file_size: u32)
pub fn set_file_size(&mut self, file_size: u32)
Set the file size, or if bigger then 32-bits, set the least significant 32-bits
Sourcepub fn icon_index(&self) -> i32
pub fn icon_index(&self) -> i32
Get the icon index
Sourcepub fn set_icon_index(&mut self, icon_index: i32)
pub fn set_icon_index(&mut self, icon_index: i32)
Set the icon index
Sourcepub fn show_command(&self) -> &ShowCommand
pub fn show_command(&self) -> &ShowCommand
Get the show command
Sourcepub fn set_show_command(&mut self, show_command: ShowCommand)
pub fn set_show_command(&mut self, show_command: ShowCommand)
Set the shortcut show command
Sourcepub fn hotkey(&self) -> &HotkeyFlags
pub fn hotkey(&self) -> &HotkeyFlags
Get the hotkey flags
Sourcepub fn hotkey_mut(&mut self) -> &mut HotkeyFlags
pub fn hotkey_mut(&mut self) -> &mut HotkeyFlags
Get a mutable pointer to the hotkey flags
Trait Implementations§
Source§impl Clone for ShellLinkHeader
impl Clone for ShellLinkHeader
Source§fn clone(&self) -> ShellLinkHeader
fn clone(&self) -> ShellLinkHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ShellLinkHeader
impl Debug for ShellLinkHeader
Source§impl Default for ShellLinkHeader
impl Default for ShellLinkHeader
impl Copy for ShellLinkHeader
Auto Trait Implementations§
impl Freeze for ShellLinkHeader
impl RefUnwindSafe for ShellLinkHeader
impl Send for ShellLinkHeader
impl Sync for ShellLinkHeader
impl Unpin for ShellLinkHeader
impl UnwindSafe for ShellLinkHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more