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