Struct cameleon::genapi::EnumerationNode
source · pub struct EnumerationNode(/* private fields */);
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 for EnumerationNode
impl PartialEq for EnumerationNode
impl Copy for EnumerationNode
impl Eq for EnumerationNode
impl StructuralPartialEq for EnumerationNode
Auto Trait Implementations§
impl Freeze for EnumerationNode
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
source§impl<T> CallHasher for T
impl<T> CallHasher for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)