pub struct SetParameter {
pub port: PortId,
pub parameter: ParameterId,
pub value: f32,
pub source: SignalSource,
pub timestamp: u64,
}Expand description
Команда изменения параметра
Fields§
§port: PortId§parameter: ParameterId§value: f32§source: SignalSource§timestamp: u64Implementations§
Source§impl SetParameter
impl SetParameter
pub fn new( port: PortId, parameter: ParameterId, value: f32, source: SignalSource, ) -> Self
pub fn with_timestamp( port: PortId, parameter: ParameterId, value: f32, source: SignalSource, timestamp: u64, ) -> Self
pub fn now() -> u64
Trait Implementations§
Source§impl Clone for SetParameter
impl Clone for SetParameter
Source§fn clone(&self) -> SetParameter
fn clone(&self) -> SetParameter
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 SetParameter
impl Debug for SetParameter
Source§impl Display for SetParameter
impl Display for SetParameter
Source§impl From<SetParameter> for CommandEnum
impl From<SetParameter> for CommandEnum
Source§fn from(cmd: SetParameter) -> Self
fn from(cmd: SetParameter) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetParameter
impl PartialEq for SetParameter
Source§impl TryFrom<CommandEnum> for SetParameter
impl TryFrom<CommandEnum> for SetParameter
impl Command for SetParameter
Auto Trait Implementations§
impl Freeze for SetParameter
impl RefUnwindSafe for SetParameter
impl Send for SetParameter
impl Sync for SetParameter
impl Unpin for SetParameter
impl UnsafeUnpin for SetParameter
impl UnwindSafe for SetParameter
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