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: u64The address offset of owner node to which Any notification is sent.
latest_notification: u32The latest notification sent to the owner node.
nickname: StringNickname of the node. When the same units are in the same bus, it is available to distinguish them.
clock_config: ClockConfigThe configuration of media clock and sampling clock.
enable: boolWhether to enable packet streaming or not.
clock_status: ClockStatusThe status of sampling clock.
external_source_states: ExternalSourceStatesThe states of external clock sources. Any change is notified by NOTIFY_EXT_STATUS.
current_rate: u32Detected rate of sampling clock in Hz.
version: u32The 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 copy 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
source§fn eq(&self, other: &GlobalParameters) -> bool
fn eq(&self, other: &GlobalParameters) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for GlobalParameters
impl StructuralEq for GlobalParameters
impl StructuralPartialEq for GlobalParameters
Auto Trait Implementations§
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<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.