[][src]Struct rust_openttd_admin::packet::admin::client_packets::Poll

pub struct Poll {
    pub update_type: AdminUpdateType,
    pub id: u32,
}

Poll the server for certain updates, an invalid poll (e.g. not existent id) gets silently dropped.

Fields

update_type: AdminUpdateType

[AdminUpdateType] the server should answer for, only if #AdminUpdateFrequency #ADMIN_FREQUENCY_POLL is advertised in the PROTOCOL packet.

id: u32

ID relevant to the packet type, e.g.

  • the client ID for #ADMIN_UPDATE_CLIENT_INFO. Use UINT32_MAX to show all clients.
  • the company ID for #ADMIN_UPDATE_COMPANY_INFO. Use UINT32_MAX to show all companies.

Trait Implementations

impl Packet for Poll[src]

impl Eq for Poll[src]

impl Copy for Poll[src]

impl PartialEq<Poll> for Poll[src]

impl Clone for Poll[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Poll[src]

impl Serialize for Poll[src]

impl<'de> Deserialize<'de> for Poll[src]

Auto Trait Implementations

impl Send for Poll

impl Sync for Poll

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]