pub struct VirtualCdjConfig {
pub name: DeviceName,
pub kind: DeviceKind,
pub numbering: Numbering,
pub generation: u8,
pub firmware: String,
pub emit_status: bool,
}Expand description
How to present ourselves.
Fields§
§name: DeviceNameThe name to announce. CDJ-2000nexus is the exact casing real hardware
uses (F1).
kind: DeviceKindWhat kind of device to claim to be.
numbering: NumberingHow to get a device number.
generation: u8Keep-alive byte 0x35, a product-generation code.
0x00 is what real nexus gear sends — 148 packets from a CDJ-2000nexus
and 91 from a DJM-2000nexus, all 0x00, where the literature says
0x01 (C3). 0x64 is required to coexist with CDJ-3000s: the wrong
value can make a CDJ-3000 set to player 5 or 6 repeatedly kick itself off
the network.
firmware: StringThe firmware string to report in status packets.
emit_status: boolWhether to emit status packets on UDP 50002.
Required for a peer to learn what is in our slots, and therefore for being browsable at all. Off means we are visible but have nothing to offer.
Trait Implementations§
Source§impl Clone for VirtualCdjConfig
impl Clone for VirtualCdjConfig
Source§impl Debug for VirtualCdjConfig
impl Debug for VirtualCdjConfig
Auto Trait Implementations§
impl Freeze for VirtualCdjConfig
impl RefUnwindSafe for VirtualCdjConfig
impl Send for VirtualCdjConfig
impl Sync for VirtualCdjConfig
impl Unpin for VirtualCdjConfig
impl UnsafeUnpin for VirtualCdjConfig
impl UnwindSafe for VirtualCdjConfig
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