pub struct StudioConfig {
    pub opt_iface_mode: OptIfaceMode,
    pub standalone_src: StudioStandaloneClkSrc,
    pub standalone_rate: TcKonnektStandaloneClockRate,
    pub clock_recovery: bool,
    pub midi_send: TcKonnektMidiSender,
}
Expand description

Configuration.

Fields§

§opt_iface_mode: OptIfaceMode

The mode of optical input/output interfaces.

§standalone_src: StudioStandaloneClkSrc

Source of sampling clock at standalone mode.

§standalone_rate: TcKonnektStandaloneClockRate

Rate of sampling clock at standalone mode.

§clock_recovery: bool

Whether to recover sampling clock from any source jitter.

§midi_send: TcKonnektMidiSender

Configuration for midi event generator.

Trait Implementations§

source§

impl AsMut<TcKonnektMidiSender> for StudioConfig

source§

fn as_mut(&mut self) -> &mut TcKonnektMidiSender

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<TcKonnektStandaloneClockRate> for StudioConfig

source§

fn as_mut(&mut self) -> &mut TcKonnektStandaloneClockRate

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<TcKonnektMidiSender> for StudioConfig

source§

fn as_ref(&self) -> &TcKonnektMidiSender

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<TcKonnektStandaloneClockRate> for StudioConfig

source§

fn as_ref(&self) -> &TcKonnektStandaloneClockRate

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for StudioConfig

source§

fn clone(&self) -> StudioConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StudioConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StudioConfig

source§

fn default() -> StudioConfig

Returns the “default value” for a type. Read more
source§

impl PartialEq<StudioConfig> for StudioConfig

source§

fn eq(&self, other: &StudioConfig) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TcKonnektMutableSegmentOperation<StudioConfig> for Studiok48Protocol

source§

fn update_partial_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update part of segment for any change at the parameters.
source§

fn update_whole_segment( req: &FwReq, node: &FwNode, params: &T, segment: &mut TcKonnektSegment<T>, timeout_ms: u32 ) -> Result<(), Error>

Update whole segment by the parameters.
source§

impl TcKonnektNotifiedSegmentOperation<StudioConfig> for Studiok48Protocol

source§

const NOTIFY_FLAG: u32 = 262_144u32

source§

fn is_notified_segment(_: &TcKonnektSegment<T>, msg: u32) -> bool

Check message to be notified or not.
source§

impl TcKonnektSegmentSerdes<StudioConfig> for Studiok48Protocol

source§

const NAME: &'static str = "configuration"

The name of segment.
source§

const OFFSET: usize = 68usize

The offset of segment.
source§

const SIZE: usize = 100usize

The size of segment.
source§

fn serialize(params: &StudioConfig, raw: &mut [u8]) -> Result<(), String>

Serialize for parameter.
source§

fn deserialize(params: &mut StudioConfig, raw: &[u8]) -> Result<(), String>

Deserialize for parameter.
source§

impl Copy for StudioConfig

source§

impl Eq for StudioConfig

source§

impl StructuralEq for StudioConfig

source§

impl StructuralPartialEq for StudioConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.