pub struct AddressPath {
pub block_id: Option<NodeId>,
pub param_name: String,
}Expand description
Parsed OSC-style address path.
Supports formats:
/block/<uuid>/param/<name>- Specific block parameter/blocks/param/<name>- Broadcast to all blocks
Fields§
§block_id: Option<NodeId>Target block (None for broadcast).
param_name: StringParameter name.
Implementations§
Source§impl AddressPath
impl AddressPath
Sourcepub fn parse(address: &str) -> Result<Self>
pub fn parse(address: &str) -> Result<Self>
Parse an OSC address string.
§Supported Formats
/block/<uuid>/param/<name>- Specific block parameter/blocks/param/<name>- Broadcast to all blocks
§Example
use bbx_net::address::AddressPath;
let path = AddressPath::parse("/blocks/param/gain").unwrap();
assert!(path.block_id.is_none());
assert_eq!(path.param_name, "gain");Sourcepub fn to_address_string(&self) -> String
pub fn to_address_string(&self) -> String
Format as an OSC address string.
Trait Implementations§
Source§impl Clone for AddressPath
impl Clone for AddressPath
Source§fn clone(&self) -> AddressPath
fn clone(&self) -> AddressPath
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 moreAuto Trait Implementations§
impl Freeze for AddressPath
impl RefUnwindSafe for AddressPath
impl Send for AddressPath
impl Sync for AddressPath
impl Unpin for AddressPath
impl UnwindSafe for AddressPath
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