Struct cameleon::genapi::BooleanNode
source · pub struct BooleanNode(_);
Expand description
A node that has IBoolean
interface.
Implementations§
source§impl BooleanNode
impl BooleanNode
sourcepub fn value<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<bool>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn value<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<bool>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns the value of the node.
sourcepub fn set_value<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>,
value: bool
) -> GenApiResult<()>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn set_value<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt>, value: bool ) -> GenApiResult<()>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Sets the value of the node.
sourcepub fn is_readable<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<bool>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn is_readable<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<bool>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns true
if the node is readable.
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.
Trait Implementations§
source§impl Clone for BooleanNode
impl Clone for BooleanNode
source§fn clone(&self) -> BooleanNode
fn clone(&self) -> BooleanNode
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 BooleanNode
impl Debug for BooleanNode
source§impl Hash for BooleanNode
impl Hash for BooleanNode
source§impl PartialEq<BooleanNode> for BooleanNode
impl PartialEq<BooleanNode> for BooleanNode
source§fn eq(&self, other: &BooleanNode) -> bool
fn eq(&self, other: &BooleanNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BooleanNode
impl Eq for BooleanNode
impl StructuralEq for BooleanNode
impl StructuralPartialEq for BooleanNode
Auto Trait Implementations§
impl RefUnwindSafe for BooleanNode
impl Send for BooleanNode
impl Sync for BooleanNode
impl Unpin for BooleanNode
impl UnwindSafe for BooleanNode
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