mirror of
https://github.com/G2-Games/minidisc-cli.git
synced 2025-04-19 11:42:53 -05:00
Make DeviceStatus' fields public
This commit is contained in:
parent
afd799d07d
commit
79844cdb57
1 changed files with 7 additions and 7 deletions
|
@ -20,16 +20,16 @@ pub enum OperatingStatus {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Time {
|
pub struct Time {
|
||||||
minute: u16,
|
pub minute: u16,
|
||||||
second: u16,
|
pub second: u16,
|
||||||
frame: u16,
|
pub frame: u16,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct DeviceStatus {
|
pub struct DeviceStatus {
|
||||||
disc_present: bool,
|
pub disc_present: bool,
|
||||||
state: Option<OperatingStatus>,
|
pub state: Option<OperatingStatus>,
|
||||||
track: u8,
|
pub track: u8,
|
||||||
time: Time,
|
pub time: Time,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn device_status(interface: &mut NetMDInterface) -> Result<DeviceStatus, Box<dyn Error>> {
|
pub async fn device_status(interface: &mut NetMDInterface) -> Result<DeviceStatus, Box<dyn Error>> {
|
||||||
|
|
Loading…
Reference in a new issue