# Struct b15f::b15f::B15F

source · [−]

    pub struct B15F {}

Expand description

Structure representing the driver for the board 15

## Implementations

source

### impl B15F

source

#### pub fn new() -> Result<B15F, &'static str>

Creates a new instance of the B15

This function will establish a connection to a connected B15 and return a handle to interact with it. Only one such instance should exist per program; calling `B15F::new()` more than once might lead to unexpected behaviour.

##### Examples

    use b15f::B15F;

    let drv = B15F::new().unwrap();

source

#### pub fn get_board_info(&self) -> Vec<&str>

Yields information about the installed firmware on the B15

Returns an array of strings, where each string contains a piece of information stored on the B15

##### Examples

    use b15f::B15F;

    let drv = B15F::new().unwrap();

    // Print each bit of information on a new line
    drv.get_board_info()
    	.iter()
    	.for_each(|info| println!("{info}"));

## Trait Implementations

source

### impl Debug for B15F

source

#### fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

## Auto Trait Implementations

### impl RefUnwindSafe for B15F

### impl Send for B15F

### impl Sync for B15F

### impl Unpin for B15F

### impl UnwindSafe for B15F

## Blanket Implementations

source

### impl<T> Any for T where
T: 'static + ?Sized,

source

#### fn type_id(&self) -> TypeId

Gets the `TypeId` of `self`. Read more

source

### impl<T> Borrow<T> for T where
T: ?Sized,

const: unstable · source

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

source

### impl<T> BorrowMut<T> for T where
T: ?Sized,

const: unstable · source

#### fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more

source

### impl<T> From<T> for T

const: unstable · source

#### fn from(t: T) -> T

Returns the argument unchanged.

source

### impl<T, U> Into<U> for T where
U: From<T>,

const: unstable · source

#### fn into(self) -> U

Calls `U::from(self)`.

That is, this conversion is whatever the implementation of `From<T> for U` chooses to do.

source

### impl<T, U> TryFrom<U> for T where
U: Into<T>,

#### type Error = Infallible

The type returned in the event of a conversion error.

const: unstable · source

#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.

source

### impl<T, U> TryInto<U> for T where
U: TryFrom<T>,

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

The type returned in the event of a conversion error.

const: unstable · source

#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.