#[non_exhaustive]pub enum Packet {
Show 69 variants
Isi(Isi),
Ver(Ver),
Tiny(Tiny),
Small(Small),
Sta(Sta),
Sch(Sch),
Sfp(Sfp),
Scc(Scc),
Cpp(Cpp),
Ism(Ism),
Mso(Mso),
Iii(Iii),
Mst(Mst),
Mtc(Mtc),
Mod(Mod),
Vtn(Vtn),
Rst(Rst),
Ncn(Ncn),
Cnl(Cnl),
Cpr(Cpr),
Npl(Npl),
Plp(Plp),
Pll(Pll),
Lap(Lap),
Spx(Spx),
Pit(Pit),
Psf(Psf),
Pla(Pla),
Cch(Cch),
Pen(Pen),
Toc(Toc),
Flg(Flg),
Pfl(Pfl),
Fin(Fin),
Res(Res),
Reo(Reo),
Nlp(Nlp),
Mci(Mci),
Msx(Msx),
Msl(Msl),
Crs(Crs),
Bfn(Bfn),
Axi(Axi),
Axo(Axo),
Btn(Btn),
Btc(Btc),
Btt(Btt),
Rip(Rip),
Ssh(Ssh),
Con(Con),
Obh(Obh),
Hlv(Hlv),
Plc(Plc),
Axm(Axm),
Acr(Acr),
Hcp(Hcp),
Nci(Nci),
Jrr(Jrr),
Uco(Uco),
Oco(Oco),
Ttc(Ttc),
Slc(Slc),
Csc(Csc),
Cim(Cim),
Mal(Mal),
Plh(Plh),
Ipb(Ipb),
Aic(Aic),
Aii(Aii),
}
Expand description
Enum representing all possible packets receivable via an Insim connection. Each variant may either be instructional (tell LFS to do something), informational (you are told something about LFS), or both.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Isi(Isi)
Instruction - handshake or init
Ver(Ver)
Information - version info
Tiny(Tiny)
Both - multi-purpose
Small(Small)
Both - multi-purpose
Sta(Sta)
Information - State info
Sch(Sch)
Instruction - Single character
Sfp(Sfp)
Instruction - State Flags Pack
Scc(Scc)
Both - Set Car Cam
Cpp(Cpp)
Both - Camera position pack
Ism(Ism)
Information - Start multiplayer
Mso(Mso)
Information - Message out
Iii(Iii)
Information - Hidden /i message
Mst(Mst)
Instruction - Type a message or /command
Mtc(Mtc)
Instruction - Message to connection
Mod(Mod)
Instruction - set screen mode
Vtn(Vtn)
Information - Vote notification
Rst(Rst)
Information - Race start
Ncn(Ncn)
Information - New connection
Cnl(Cnl)
Information - Connection left
Cpr(Cpr)
Information - Connection renamed
Npl(Npl)
Information - New player (player joined)
Plp(Plp)
Information - Player telepits
Pll(Pll)
Information - Player left
Lap(Lap)
Information - Lap time
Spx(Spx)
Information - Split time
Pit(Pit)
Information - Pit stop start
Psf(Psf)
Information - Pit stop finish
Pla(Pla)
Information - Player entered pit lane
Cch(Cch)
Information - Camera changed
Pen(Pen)
Information - Penalty
Toc(Toc)
Information - Take over
Flg(Flg)
Information - Flag
Pfl(Pfl)
Information - Player flags
Fin(Fin)
Information - Finished race - unverified result
Res(Res)
Information - Verified finish result
Reo(Reo)
Both - Player reorder
Nlp(Nlp)
Information - Node and lap
Mci(Mci)
Information - Multi-car info
Msx(Msx)
Instruction - Type a message
Msl(Msl)
Instruction - Message to local computer
Crs(Crs)
Information - Car reset
Bfn(Bfn)
Both - Delete or receive buttons
Axi(Axi)
Information - AutoX layout info
Axo(Axo)
Information - Player hit an AutoX object
Btn(Btn)
Instruction - Show a button
Btc(Btc)
Information - Button clicked
Btt(Btt)
Information - Button was typed into
Rip(Rip)
Both - Replay information
Ssh(Ssh)
Both - screenshot
Con(Con)
Information - contact between vehicles
Obh(Obh)
Information - Object hit
Hlv(Hlv)
Information - Hot lap validity violation
Plc(Plc)
Instruction - Restrict player vehicles
Axm(Axm)
Both - AutoX - multiple object
Acr(Acr)
Information - Admin command report
Hcp(Hcp)
Instruction - Handicap
Nci(Nci)
Information - New connection information
Jrr(Jrr)
Instruction - Join reply response
Uco(Uco)
Information - report insim checkpoint/circle
Oco(Oco)
Instruction - Object control
Ttc(Ttc)
Instruction - Multi-purpose, target to connection
Slc(Slc)
Information - Player selected vehicle
Csc(Csc)
Information - Vehicle changed state
Cim(Cim)
Information - Connection interface mode
Mal(Mal)
Both - Set mods a player is allowed
Plh(Plh)
Both - Set/receive player handicap
Ipb(Ipb)
Both - Set/receive player bans
Aic(Aic)
Instruction - Set AI control value
Aii(Aii)
Information - AI information
Implementations§
Trait Implementations§
Source§impl From<PlcAllowedCarsSet> for Packet
impl From<PlcAllowedCarsSet> for Packet
Source§fn from(value: PlcAllowedCarsSet) -> Self
fn from(value: PlcAllowedCarsSet) -> Self
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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