pub struct State {Show 15 fields
    pub bank: u8,
    pub pattern: u8,
    pub arrangement: u8,
    pub arrangement_mode: u8,
    pub part: u8,
    pub track: u8,
    pub track_othermode: u8,
    pub scene_a_mute: bool,
    pub scene_b_mute: bool,
    pub track_cue_mask: u8,
    pub track_mute_mask: u8,
    pub track_solo_mask: u8,
    pub midi_track_mute_mask: u8,
    pub midi_track_solo_mask: u8,
    pub midi_mode: u8,
}Expand description
Project state from a parsed Octatrack project.* file.
This is the current ‘UX focus’ state, i.e. what parts, patterns, tracks are currently selected etc.
Fields§
§bank: u8Current active bank
pattern: u8Current active pattern within a bank
arrangement: u8Current active arrangement.
arrangement_mode: u8Whether in arrangement mode or not.
part: u8Current active part for the active pattern within a bank
track: u8Current active track
track_othermode: u8Unknown
scene_a_mute: boolWhether Scene A is disabled/enabled
scene_b_mute: boolWhether Scene B is disabled/enabled
track_cue_mask: u8Mask detailingg which CUE outputs are muted on Audio Tracks.
track_mute_mask: u8Mask detailingg which MAIN outputs are muted on Audio Tracks.
track_solo_mask: u8Mask detailingg which MAIN outputs are soloed on Audio Tracks.
midi_track_mute_mask: u8Mask detailingg which MIDI outputs are muted on MIDI Tracks.
midi_track_solo_mask: u8Mask detailingg which MIDI outputs are soloed on MIDI Tracks.
midi_mode: u8Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
 
impl<'de> Deserialize<'de> for State
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
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more