[][src]Struct ev3dev_lang_rust::Attribute

pub struct Attribute { /* fields omitted */ }

Methods

impl Attribute[src]

pub fn new(
    class_name: &str,
    name: &str,
    attribute_name: &str
) -> Ev3Result<Attribute>
[src]

pub fn get<T>(&self) -> Ev3Result<T> where
    T: FromStr,
    <T as FromStr>::Err: Error
[src]

pub fn set<T>(&self, value: T) -> Ev3Result<()> where
    T: ToString
[src]

pub fn set_str_slice(&self, value: &str) -> Ev3Result<()>[src]

pub fn get_vec(&self) -> Ev3Result<Vec<String>>[src]

pub fn get_raw_fd(&self) -> RawFd[src]

Trait Implementations

impl Clone for Attribute[src]

Auto Trait Implementations

impl !Send for Attribute

impl !Sync for Attribute

impl Unpin for Attribute

impl !UnwindSafe for Attribute

impl !RefUnwindSafe for Attribute

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]