Struct rlbot::Packeteer [−][src]
pub struct Packeteer<'a> { /* fields omitted */ }
An iterator-like object that yields LiveDataPacket
s from the game as
they occur.
Methods
impl<'a> Packeteer<'a>
[src]
impl<'a> Packeteer<'a>
pub fn next(&mut self) -> Result<LiveDataPacket, Box<Error>>
[src]
pub fn next(&mut self) -> Result<LiveDataPacket, Box<Error>>
Block until we receive the next unique LiveDataPacket
, and then
return it.
Errors
This function returns an error if five seconds pass without a new packet being received. The assumption is that the game froze or crashed, and waiting longer will not help.