pub struct Rules<'a> {
pub num: u16,
pub rules: Vec<Rule<'a>>,
}Expand description
Rules parsed from an A2S_RULES response.
Rule names and values borrow from the response packet. Use Rules::to_owned
to create values that no longer borrow from it.
Fields§
§num: u16Number of rules reported by the server.
rules: Vec<Rule<'a>>Parsed name/value entries.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Rules<'a>
impl<'a> Freeze for Rules<'a>
impl<'a> Move for Rules<'a>
impl<'a> RefUnwindSafe for Rules<'a>
impl<'a> Send for Rules<'a>
impl<'a> Sync for Rules<'a>
impl<'a> Unpin for Rules<'a>
impl<'a> UnsafeUnpin for Rules<'a>
impl<'a> UnwindSafe for Rules<'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