pub struct GameConnection {
pub pid: Pid,
pub path: String,
pub handle: Handle,
pub base_address: usize,
pub last_fetch: Option<StatsBlockWithFrames>,
pub child_handle: Option<Child>,
pub params: ConnectionParams,
/* private fields */
}Fields§
§pid: Pid§path: String§handle: Handle§base_address: usize§last_fetch: Option<StatsBlockWithFrames>§child_handle: Option<Child>§params: ConnectionParamsImplementations§
Source§impl GameConnection
impl GameConnection
pub fn try_create(params: ConnectionParams) -> Result<Self>
pub fn dead_connection() -> Self
pub fn is_alive(&mut self) -> bool
pub fn is_alive_res(&mut self) -> Result<()>
pub fn read_stats_block(&mut self) -> Result<StatsDataBlock>
pub fn read_mem(&self, addr: usize, buffer: &mut [u8]) -> Result<()>
pub fn maximize_dd(&self)
pub fn read_stats_block_with_frames(&mut self) -> Result<StatsBlockWithFrames>
pub fn stat_frames_from_block( &mut self, block: &StatsDataBlock, ) -> Result<Vec<StatsFrame>>
pub fn replay_bin(&mut self) -> Result<Vec<u8>>
pub fn stat_frames(&self) -> Result<Vec<StatsFrame>>
pub fn last_stat_frame(&self) -> Result<StatsFrame>
pub fn play_replay(&self, replay: Arc<Vec<u8>>) -> Result<()>
Auto Trait Implementations§
impl Freeze for GameConnection
impl RefUnwindSafe for GameConnection
impl Send for GameConnection
impl Sync for GameConnection
impl Unpin for GameConnection
impl UnwindSafe for GameConnection
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more