pub enum Response<'a> {
Challenge(i32),
Info(Info<'a>),
ObsoleteInfo(GoldSrcInfo<'a>),
Players(Players<'a>),
Rules(Rules<'a>),
Ping,
}Expand description
A decoded response returned by parse_payload.
String fields in response variants borrow from the packet passed to
parse_payload. Keep that packet alive while using the response, or call
the relevant to_owned method to detach the data.
Variants§
Challenge(i32)
A challenge that must be included in the corresponding follow-up request.
Info(Info<'a>)
A Source engine server information response.
ObsoleteInfo(GoldSrcInfo<'a>)
A legacy GoldSrc server information response.
Players(Players<'a>)
A player list response.
Rules(Rules<'a>)
A server rules response.
Ping
A successful response to a legacy ping request.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Response<'a>
impl<'a> Freeze for Response<'a>
impl<'a> Move for Response<'a>
impl<'a> RefUnwindSafe for Response<'a>
impl<'a> Send for Response<'a>
impl<'a> Sync for Response<'a>
impl<'a> Unpin for Response<'a>
impl<'a> UnsafeUnpin for Response<'a>
impl<'a> UnwindSafe for Response<'a>
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