Struct cameleon::genapi::EnumEntryNode
source · pub struct EnumEntryNode(_);
Expand description
Represents an entry of [EnumerationNode]
.
Implementations§
source§impl EnumEntryNode
impl EnumEntryNode
sourcepub fn is_locked<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<bool>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn is_locked<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<bool>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns true
if the node is temporarily locked.
sourcepub fn is_implemented<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<bool>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn is_implemented<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<bool>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns true
if the node is implemented.
sourcepub fn is_available<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<bool>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn is_available<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<bool>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns true
if the node is available.
sourcepub fn value<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> i64where
Ctxt: GenApiCtxt,
pub fn value<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> i64where Ctxt: GenApiCtxt,
Returns integer value of the entry.
sourcepub fn symbolic<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> &strwhere
Ctxt: GenApiCtxt,
pub fn symbolic<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> &strwhere Ctxt: GenApiCtxt,
Returns symbolic name of the entry.
Trait Implementations§
source§impl Clone for EnumEntryNode
impl Clone for EnumEntryNode
source§fn clone(&self) -> EnumEntryNode
fn clone(&self) -> EnumEntryNode
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 EnumEntryNode
impl Debug for EnumEntryNode
source§impl Hash for EnumEntryNode
impl Hash for EnumEntryNode
source§impl PartialEq<EnumEntryNode> for EnumEntryNode
impl PartialEq<EnumEntryNode> for EnumEntryNode
source§fn eq(&self, other: &EnumEntryNode) -> bool
fn eq(&self, other: &EnumEntryNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EnumEntryNode
impl Eq for EnumEntryNode
impl StructuralEq for EnumEntryNode
impl StructuralPartialEq for EnumEntryNode
Auto Trait Implementations§
impl RefUnwindSafe for EnumEntryNode
impl Send for EnumEntryNode
impl Sync for EnumEntryNode
impl Unpin for EnumEntryNode
impl UnwindSafe for EnumEntryNode
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