pub struct GlobalParameters {
pub owner: u64,
pub latest_notification: u32,
pub nickname: String,
pub clock_config: ClockConfig,
pub enable: bool,
pub clock_status: ClockStatus,
pub external_source_states: ExternalSourceStates,
pub current_rate: u32,
pub version: u32,
pub avail_rates: Vec<ClockRate>,
pub avail_sources: Vec<ClockSource>,
pub clock_source_labels: Vec<(ClockSource, String)>,
}
Expand description
Parameters in global section.
Fields§
§owner: u64
The address offset of owner node to which Any notification is sent.
latest_notification: u32
The latest notification sent to the owner node.
nickname: String
Nickname of the node. When the same units are in the same bus, it is available to distinguish them.
clock_config: ClockConfig
The configuration of media clock and sampling clock.
enable: bool
Whether to enable packet streaming or not.
clock_status: ClockStatus
The status of sampling clock.
external_source_states: ExternalSourceStates
The states of external clock sources. Any change is notified by NOTIFY_EXT_STATUS.
current_rate: u32
Detected rate of sampling clock in Hz.
version: u32
The version of protocol.
avail_rates: Vec<ClockRate>
The list of available rates for media clock.
avail_sources: Vec<ClockSource>
The list of available sources for sampling clock.
clock_source_labels: Vec<(ClockSource, String)>
The list of external signal names for source of sampling clock.
Trait Implementations§
Source§impl Clone for GlobalParameters
impl Clone for GlobalParameters
Source§fn clone(&self) -> GlobalParameters
fn clone(&self) -> GlobalParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GlobalParameters
impl Debug for GlobalParameters
Source§impl Default for GlobalParameters
impl Default for GlobalParameters
Source§fn default() -> GlobalParameters
fn default() -> GlobalParameters
Returns the “default value” for a type. Read more
Source§impl PartialEq for GlobalParameters
impl PartialEq for GlobalParameters
impl Eq for GlobalParameters
impl StructuralPartialEq for GlobalParameters
Auto Trait Implementations§
impl Freeze for GlobalParameters
impl RefUnwindSafe for GlobalParameters
impl Send for GlobalParameters
impl Sync for GlobalParameters
impl Unpin for GlobalParameters
impl UnwindSafe for GlobalParameters
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<O> TcatFluctuatedSectionOperation<GlobalParameters> for Owhere
O: TcatSectionOperation<GlobalParameters>,
impl<O> TcatFluctuatedSectionOperation<GlobalParameters> for Owhere
O: TcatSectionOperation<GlobalParameters>,
Source§const FLUCTUATED_OFFSETS: &'static [usize] = const FLUCTUATED_OFFSETS: &'static [usize] = &[88];
const FLUCTUATED_OFFSETS: &'static [usize] = const FLUCTUATED_OFFSETS: &'static [usize] = &[88];
The set of address offsets in which any value is changed apart from software operation;
e.g. hardware metering.
Source§impl<O> TcatMutableSectionOperation<GlobalParameters> for O
impl<O> TcatMutableSectionOperation<GlobalParameters> for O
Source§impl<O> TcatNotifiedSectionOperation<GlobalParameters> for Owhere
O: TcatSectionOperation<GlobalParameters>,
impl<O> TcatNotifiedSectionOperation<GlobalParameters> for Owhere
O: TcatSectionOperation<GlobalParameters>,
Source§impl<O> TcatSectionOperation<GlobalParameters> for O
impl<O> TcatSectionOperation<GlobalParameters> for O
Source§impl<O> TcatSectionSerdes<GlobalParameters> for Owhere
O: TcatOperation + TcatGlobalSectionSpecification,
impl<O> TcatSectionSerdes<GlobalParameters> for Owhere
O: TcatOperation + TcatGlobalSectionSpecification,
Source§const ERROR_TYPE: GeneralProtocolError = const ERROR_TYPE: GeneralProtocolError = GeneralProtocolError::Global;
const ERROR_TYPE: GeneralProtocolError = const ERROR_TYPE: GeneralProtocolError = GeneralProtocolError::Global;
The type of error.
Source§fn serialize(params: &GlobalParameters, raw: &mut [u8]) -> Result<(), String>
fn serialize(params: &GlobalParameters, raw: &mut [u8]) -> Result<(), String>
Serialize parameters for section.
Source§fn deserialize(params: &mut GlobalParameters, raw: &[u8]) -> Result<(), String>
fn deserialize(params: &mut GlobalParameters, raw: &[u8]) -> Result<(), String>
Deserialize section for parameters.