pub struct QueryServersResponse<I> {
pub key: Option<u32>,
/* private fields */
}Expand description
Game server addresses list.
Fields§
§key: Option<u32>A challenge number received in a filter string.
Implementations§
Source§impl<'a> QueryServersResponse<&'a [u8]>
impl<'a> QueryServersResponse<&'a [u8]>
Source§impl QueryServersResponse<()>
impl QueryServersResponse<()>
Sourcepub fn encode<A>(
&mut self,
buf: &mut [u8],
list: &[A],
) -> Result<(usize, usize), Error>where
A: ServerAddress,
pub fn encode<A>(
&mut self,
buf: &mut [u8],
list: &[A],
) -> Result<(usize, usize), Error>where
A: ServerAddress,
Encode packet to buf.
If buf has not enougth size to hold all addresses the method must be called
multiple times until the end flag equals true.
Returns how many bytes was written in buf and the end flag.
Trait Implementations§
Source§impl<I: Clone> Clone for QueryServersResponse<I>
impl<I: Clone> Clone for QueryServersResponse<I>
Source§fn clone(&self) -> QueryServersResponse<I>
fn clone(&self) -> QueryServersResponse<I>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<I: Debug> Debug for QueryServersResponse<I>
impl<I: Debug> Debug for QueryServersResponse<I>
Source§impl<I: PartialEq> PartialEq for QueryServersResponse<I>
impl<I: PartialEq> PartialEq for QueryServersResponse<I>
impl<I> StructuralPartialEq for QueryServersResponse<I>
Auto Trait Implementations§
impl<I> Freeze for QueryServersResponse<I>where
I: Freeze,
impl<I> RefUnwindSafe for QueryServersResponse<I>where
I: RefUnwindSafe,
impl<I> Send for QueryServersResponse<I>where
I: Send,
impl<I> Sync for QueryServersResponse<I>where
I: Sync,
impl<I> Unpin for QueryServersResponse<I>where
I: Unpin,
impl<I> UnwindSafe for QueryServersResponse<I>where
I: UnwindSafe,
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