Struct cameleon::genapi::EnumerationNode
source · pub struct EnumerationNode(_);
Expand description
A node that has IEnumeration
interface.
Implementations§
source§impl EnumerationNode
impl EnumerationNode
sourcepub fn set_entry_by_symbolic<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>,
name: &str
) -> GenApiResult<()>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn set_entry_by_symbolic<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt>, name: &str ) -> GenApiResult<()>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Sets entry to the enumeration node by the entry symbolic name.
sourcepub fn set_entry_by_value<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>,
value: i64
) -> GenApiResult<()>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn set_entry_by_value<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt>, value: i64 ) -> GenApiResult<()>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Sets entry to the enumeration node by the entry value.
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.
sourcepub fn entries<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Vec<EnumEntryNode>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn entries<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Vec<EnumEntryNode>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns entries of the node.
sourcepub fn current_entry<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<EnumEntryNode>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn current_entry<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<EnumEntryNode>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns current entry of the node.
Trait Implementations§
source§impl Clone for EnumerationNode
impl Clone for EnumerationNode
source§fn clone(&self) -> EnumerationNode
fn clone(&self) -> EnumerationNode
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 EnumerationNode
impl Debug for EnumerationNode
source§impl Hash for EnumerationNode
impl Hash for EnumerationNode
source§impl PartialEq<EnumerationNode> for EnumerationNode
impl PartialEq<EnumerationNode> for EnumerationNode
source§fn eq(&self, other: &EnumerationNode) -> bool
fn eq(&self, other: &EnumerationNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EnumerationNode
impl Eq for EnumerationNode
impl StructuralEq for EnumerationNode
impl StructuralPartialEq for EnumerationNode
Auto Trait Implementations§
impl RefUnwindSafe for EnumerationNode
impl Send for EnumerationNode
impl Sync for EnumerationNode
impl Unpin for EnumerationNode
impl UnwindSafe for EnumerationNode
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