pub struct NodeCommand(/* private fields */);Expand description
Newtype wrapper around crate::pod::command::Command for node commands.
Implementations§
Source§impl NodeCommand
impl NodeCommand
pub fn new(id: NodeCommandId) -> Self
pub fn id(&self) -> NodeCommandId
Sourcepub fn from_pod(pod: Command) -> Result<Self, CommandError>
pub fn from_pod(pod: Command) -> Result<Self, CommandError>
§Errors
This function will return an error if pod is not of type SpaTypes::CommandNode
Methods from Deref<Target = Command>§
pub fn as_raw_ptr(&self) -> *mut spa_command
pub fn type_(&self) -> SpaTypes
pub fn id(&self, type_: SpaTypes) -> Result<u32, CommandError>
Trait Implementations§
Source§impl Deref for NodeCommand
impl Deref for NodeCommand
Source§impl From<NodeCommandId> for NodeCommand
impl From<NodeCommandId> for NodeCommand
Source§fn from(value: NodeCommandId) -> Self
fn from(value: NodeCommandId) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NodeCommand
impl RefUnwindSafe for NodeCommand
impl Send for NodeCommand
impl Sync for NodeCommand
impl Unpin for NodeCommand
impl UnwindSafe for NodeCommand
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