pub struct UpdateFrequency {
pub update_type: AdminUpdateType,
pub frequency: UpdateFrequencies,
}
Expand description
Register updates to be sent at certain frequencies (as announced in the PROTOCOL packet).
Fields§
§update_type: AdminUpdateType
Update type (see [AdminUpdateType
]).
frequency: UpdateFrequencies
Update frequency (see #AdminUpdateFrequency), setting #ADMIN_FREQUENCY_POLL is always ignored.
Trait Implementations§
Source§impl Clone for UpdateFrequency
impl Clone for UpdateFrequency
Source§fn clone(&self) -> UpdateFrequency
fn clone(&self) -> UpdateFrequency
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 Debug for UpdateFrequency
impl Debug for UpdateFrequency
Source§impl<'de> Deserialize<'de> for UpdateFrequency
impl<'de> Deserialize<'de> for UpdateFrequency
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Packet for UpdateFrequency
impl Packet for UpdateFrequency
const PACKET_TYPE: u8 = 2u8
Source§impl PartialEq for UpdateFrequency
impl PartialEq for UpdateFrequency
Source§impl Serialize for UpdateFrequency
impl Serialize for UpdateFrequency
impl Copy for UpdateFrequency
impl Eq for UpdateFrequency
impl StructuralPartialEq for UpdateFrequency
Auto Trait Implementations§
impl Freeze for UpdateFrequency
impl RefUnwindSafe for UpdateFrequency
impl Send for UpdateFrequency
impl Sync for UpdateFrequency
impl Unpin for UpdateFrequency
impl UnwindSafe for UpdateFrequency
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