Struct LinkedMem
#[repr(C)]pub struct LinkedMem {
pub ui_version: u32,
pub ui_tick: u32,
pub avatar: Position,
pub name: [u16; 256],
pub camera: Position,
pub identity: [u16; 256],
pub context_len: u32,
pub context: Context,
pub description: [u16; 2048],
}Expand description
MumbleLink shared memory.
Fields§
§ui_version: u32UI version.
ui_tick: u32UI tick.
avatar: PositionPosition of the player in map coordinate system.
See API:1/event_details#Coordinate_recalculation.
Updated every frame. Should be able to read 50 times a second.
name: [u16; 256]Game name.
camera: PositionPosition of the camera.
Updated every frame. Should be able to read 50 times a second.
identity: [u16; 256]Identity information as JSON.
Should only change a few times per second.
context_len: u32Length of the following context.
Hardcoded to 48 for Guild Wars 2 despite Context being larger.
context: ContextSee Context.
Should only change a few times per second.
description: [u16; 2048]Game description.
Implementations§
§impl LinkedMem
impl LinkedMem
pub fn name_string(&self) -> OsString
pub fn name_string(&self) -> OsString
Returns the name as OsString.
pub fn identity_string(&self) -> OsString
pub fn identity_string(&self) -> OsString
Returns the name as OsString.
pub fn description_string(&self) -> OsString
pub fn description_string(&self) -> OsString
Returns the name as OsString.
pub fn parse_identity(&self) -> Result<Identity, Error>
pub fn parse_identity(&self) -> Result<Identity, Error>
Parses the current identity JSON contents.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkedMem
impl RefUnwindSafe for LinkedMem
impl Send for LinkedMem
impl Sync for LinkedMem
impl Unpin for LinkedMem
impl UnwindSafe for LinkedMem
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