pub struct OscMessage {
pub addr: String,
pub args: Vec<OscType>,
}
Expand description
An OSC message consists of an address and zero or more arguments. The address should specify an element of your Instrument (or whatever you want to control with OSC) and the arguments are used to set properties of the element to the respective values.
Fields§
§addr: String
§args: Vec<OscType>
Trait Implementations§
Source§impl Clone for OscMessage
impl Clone for OscMessage
Source§fn clone(&self) -> OscMessage
fn clone(&self) -> OscMessage
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 OscMessage
impl Debug for OscMessage
Source§impl<'a> From<&'a str> for OscMessage
impl<'a> From<&'a str> for OscMessage
Source§fn from(s: &str) -> OscMessage
fn from(s: &str) -> OscMessage
Converts to this type from the input type.
Source§impl From<String> for OscMessage
impl From<String> for OscMessage
Source§fn from(s: String) -> OscMessage
fn from(s: String) -> OscMessage
Converts to this type from the input type.
Source§impl IntoOscPacket for OscMessage
impl IntoOscPacket for OscMessage
Source§fn into_osc_packet(self) -> OscPacket
fn into_osc_packet(self) -> OscPacket
Convert into
OscPacket
.Source§impl OscMessageExt for OscMessage
impl OscMessageExt for OscMessage
Source§fn new<T>(addr: impl ToString, args: T) -> Selfwhere
T: IntoOscArgs,
fn new<T>(addr: impl ToString, args: T) -> Selfwhere
T: IntoOscArgs,
Create a new OscMessage from an address and args.
The args can either be specified as a
Vec<[OscType]
, or as a tuple of regular Rust types
that can be converted into OscType
.Source§impl PartialEq for OscMessage
impl PartialEq for OscMessage
impl StructuralPartialEq for OscMessage
Auto Trait Implementations§
impl Freeze for OscMessage
impl RefUnwindSafe for OscMessage
impl Send for OscMessage
impl Sync for OscMessage
impl Unpin for OscMessage
impl UnwindSafe for OscMessage
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