[][src]Struct parselnk::extra_data::ExtraData

pub struct ExtraData {
    pub console_props: Option<ConsoleDataBlock>,
    pub console_fe_props: Option<ConsoleFEDataBlock>,
    pub shim_props: Option<ShimDataBlock>,
    // some fields omitted
}

ExtraData refers to a set of structures that convey additional information about a link target. These optional structures can be present in an extra data section that is appended to the basic Shell Link Binary File Format. The ExtraData structures conform to the following ABNF rules [RFC5234]:

Fields

console_props: Option<ConsoleDataBlock>

The ConsoleDataBlock structure specifies the display settings to use when a link target specifies an application that is run in a console window.

console_fe_props: Option<ConsoleFEDataBlock>

The ConsoleFEDataBlock structure specifies the code page to use for displaying text when a link target specifies an application that is run in a console window.

shim_props: Option<ShimDataBlock>

The ShimDataBlock structure specifies the name of a shim that can be applied when activating a link target.

Methods

impl ExtraData[src]

pub fn new(
    cursor: &mut Cursor<Vec<u8>>,
    _header: &ShellLinkHeader
) -> Result<Self, ExtraDataError>
[src]

Construct a new ExtraData instance from the data in cursor

Trait Implementations

impl Clone for ExtraData[src]

impl Debug for ExtraData[src]

impl Default for ExtraData[src]

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.