pub struct CommonNetworkRelativeLink {
    pub size: u32,
    pub flags: Vec<CommonNetworkRelativeLinkFlags>,
    pub net_name_offset: u32,
    pub device_name_offset: u32,
    pub network_provider_type: Option<NetworkProviderType>,
    pub net_name_offset_unicode: Option<u32>,
    pub device_name_offset_unicode: Option<u32>,
    pub net_name: Option<String>,
    pub device_name: Option<String>,
}
Expand description

The CommonNetworkRelativeLink structure specifies information about the network location where a link target is stored, including the mapped drive letter and the UNC path prefix.

Fields§

§size: u32§flags: Vec<CommonNetworkRelativeLinkFlags>§net_name_offset: u32§device_name_offset: u32§network_provider_type: Option<NetworkProviderType>§net_name_offset_unicode: Option<u32>§device_name_offset_unicode: Option<u32>§net_name: Option<String>§device_name: Option<String>

Implementations§

source

pub fn get_size(&self) -> &u32

source

pub fn get_flags(&self) -> &Vec<CommonNetworkRelativeLinkFlags>

source

pub fn get_net_name_offset(&self) -> &u32

source

pub fn get_device_name_offset(&self) -> &u32

source

pub fn get_network_provider_type(&self) -> &Option<NetworkProviderType>

source

pub fn get_net_name_offset_unicode(&self) -> &Option<u32>

source

pub fn get_device_name_offset_unicode(&self) -> &Option<u32>

source

pub fn get_net_name(&self) -> &Option<String>

source

pub fn get_device_name(&self) -> &Option<String>

source

pub fn from_buffer(buf: &[u8]) -> Result<Self>

source

pub fn from_reader<R: Read + Seek>(r: &mut R) -> Result<Self>

Trait Implementations§

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

fn path(&self) -> Option<String>

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.