Struct Context

#[repr(C)]
pub struct Context {
Show 17 fields pub server_address: [u8; 28], pub map_id: u32, pub map_type: u32, pub shard_id: u32, pub instance: u32, pub build_id: u32, pub ui_state: UiState, pub compass_width: u16, pub compass_height: u16, pub compass_rotation: f32, pub player_x: f32, pub player_y: f32, pub map_center_x: f32, pub map_center_y: f32, pub map_scale: f32, pub process_id: u32, pub mount_index: Mount,
}
Expand description

MumbleLink context specific to Guild Wars 2.

Fields§

§server_address: [u8; 28]

Address of the server.

Contains socketaddr_in or socketaddr_in6.

§map_id: u32

Id of the current map.

§map_type: u32

Type of the current map.

See the [map_type] module for some known types.

§shard_id: u32

Current shard id.

§instance: u32

Current instance id.

§build_id: u32

Current build id.

§ui_state: UiState

Current UI state bitflags.

§compass_width: u16

Compass width in pixels.

§compass_height: u16

Compass height in pixels.

§compass_rotation: f32

Compass rotation in radians.

§player_x: f32

Player position x in continent coordinates.

Not updated in competitive modes.

§player_y: f32

Player position y in continent coordinates.

Not updated in competitive modes.

§map_center_x: f32

Map center x in continent coordinates.

Not updated in competitive modes.

§map_center_y: f32

Map center y in continent coordinates.

Not updated in competitive modes.

§map_scale: f32

Map scale.

§process_id: u32

Process id.

§mount_index: Mount

Currently used mount.

Trait Implementations§

§

impl Clone for Context

§

fn clone(&self) -> Context

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Context

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

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.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.