pub struct FloatNode(_);
Expand description
A node that has IFloat
interface.
Implementations§
source§impl FloatNode
impl FloatNode
sourcepub fn value<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<f64>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn value<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<f64>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns the value of the node.
sourcepub fn set_value<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>,
value: f64
) -> GenApiResult<()>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn set_value<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt>, value: f64 ) -> GenApiResult<()>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Sets the value of the node.
sourcepub fn min<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<f64>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn min<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<f64>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns minimum value which the node can take.
sourcepub fn max<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<f64>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn max<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<f64>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns maximum value which the node can take.
sourcepub fn inc<Ctrl, Ctxt>(
self,
ctxt: &mut ParamsCtxt<Ctrl, Ctxt>
) -> GenApiResult<Option<f64>>where
Ctrl: DeviceControl,
Ctxt: GenApiCtxt,
pub fn inc<Ctrl, Ctxt>( self, ctxt: &mut ParamsCtxt<Ctrl, Ctxt> ) -> GenApiResult<Option<f64>>where Ctrl: DeviceControl, Ctxt: GenApiCtxt,
Returns the increment value if inc_mode
returns IncrementMode::FixedIncrement. The value
to set must be min + i * Increment
.
NOTE: Some nodes like MaskedIntReg
doesn’t have this element, though IFloat
defines getter of the 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 inc_mode<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> Option<IncrementMode>where
Ctxt: GenApiCtxt,
pub fn inc_mode<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> Option<IncrementMode>where Ctxt: GenApiCtxt,
Returns IncrementMode
of the node.
sourcepub fn representation<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> FloatRepresentationwhere
Ctxt: GenApiCtxt,
pub fn representation<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> FloatRepresentationwhere Ctxt: GenApiCtxt,
Returns FloatRepresentation
of the node. This feature is mainly for GUI.
sourcepub fn display_notation<Ctrl, Ctxt>(
self,
ctxt: &ParamsCtxt<Ctrl, Ctxt>
) -> DisplayNotationwhere
Ctxt: GenApiCtxt,
pub fn display_notation<Ctrl, Ctxt>( self, ctxt: &ParamsCtxt<Ctrl, Ctxt> ) -> DisplayNotationwhere Ctxt: GenApiCtxt,
Returns DisplayNotation
. This featres is mainly for GUI.
sourcepub fn unit<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> Option<String>where
Ctxt: GenApiCtxt,
pub fn unit<Ctrl, Ctxt>(self, ctxt: &ParamsCtxt<Ctrl, Ctxt>) -> Option<String>where Ctxt: GenApiCtxt,
Returns unit that describes phisical meaning of the value. e.g. “Hz” or “ms”.
Trait Implementations§
source§impl PartialEq<FloatNode> for FloatNode
impl PartialEq<FloatNode> for FloatNode
impl Copy for FloatNode
impl Eq for FloatNode
impl StructuralEq for FloatNode
impl StructuralPartialEq for FloatNode
Auto Trait Implementations§
impl RefUnwindSafe for FloatNode
impl Send for FloatNode
impl Sync for FloatNode
impl Unpin for FloatNode
impl UnwindSafe for FloatNode
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