pub enum PortKind {
Local,
Network {
remote: RemoteNode,
},
}Available on crate feature
distributed only.Expand description
Marks a port as a local scratch port or a network link to a RemoteNode.
Variants§
Local
A local scratch port whose data never crosses the network.
Network
A network link: this port’s audio is exchanged with remote.
Fields
§
remote: RemoteNodeThe remote node on the far side of the link.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PortKind
impl<'de> Deserialize<'de> for PortKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PortKind
impl StructuralPartialEq for PortKind
Auto Trait Implementations§
impl Freeze for PortKind
impl RefUnwindSafe for PortKind
impl Send for PortKind
impl Sync for PortKind
impl Unpin for PortKind
impl UnsafeUnpin for PortKind
impl UnwindSafe for PortKind
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