Struct cameleon::genapi::CommandNode
source · pub struct CommandNode(_);
Expand description
A node that has ICommand
interface.
Implementations§
source§impl CommandNode
impl CommandNode
sourcepub fn execute<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<()>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn execute<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<()>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Executes the command.
sourcepub fn is_done<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<bool>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn is_done<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<bool>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns true
if the previous command is executed on the device.
sourcepub fn is_writable<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<bool>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn is_writable<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<bool>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns true
if the node is writable (executable).
Trait Implementations§
source§impl Clone for CommandNode
impl Clone for CommandNode
source§fn clone(&self) -> CommandNode
fn clone(&self) -> CommandNode
Returns a copy 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 CommandNode
impl Debug for CommandNode
source§impl Hash for CommandNode
impl Hash for CommandNode
source§impl PartialEq<CommandNode> for CommandNode
impl PartialEq<CommandNode> for CommandNode
source§fn eq(&self, other: &CommandNode) -> bool
fn eq(&self, other: &CommandNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CommandNode
impl Eq for CommandNode
impl StructuralEq for CommandNode
impl StructuralPartialEq for CommandNode
Auto Trait Implementations§
impl RefUnwindSafe for CommandNode
impl Send for CommandNode
impl Sync for CommandNode
impl Unpin for CommandNode
impl UnwindSafe for CommandNode
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