pub struct OsdSync {
pub seq: u16,
pub target: DeviceUid,
pub what: OsdSyncWhat,
pub http_port: u16,
pub source_ip: Ipv4Addr,
pub records: u16,
pub slots: Option<[OsdSyncSlot; 4]>,
}Expand description
A sync, as its source sent it.
A unit takes one only from a management unit: the mesh controller, or
one that reports DeviceFeature::MANAGER.
Fields§
§seq: u16The sync’s number at its source.
target: DeviceUidThe unit it is for, or DeviceUid::ZERO for every unit.
what: OsdSyncWhatWhat it copies.
http_port: u16The source’s HTTP port, zero meaning 80.
source_ip: Ipv4AddrThe source’s address, unspecified meaning the sender’s.
records: u16How many settings follow.
slots: Option<[OsdSyncSlot; 4]>The logo slots, when it copies them. A unit fetches a slot whose size
or CRC differs from its own from
http://source_ip:http_port/osd-sync/slotN.png, N being 1 to 4.
Trait Implementations§
impl Eq for OsdSync
impl StructuralPartialEq for OsdSync
Auto Trait Implementations§
impl Freeze for OsdSync
impl RefUnwindSafe for OsdSync
impl Send for OsdSync
impl Sync for OsdSync
impl Unpin for OsdSync
impl UnsafeUnpin for OsdSync
impl UnwindSafe for OsdSync
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