Struct ni_fpga::Session[][src]

pub struct Session {
    pub handle: Session,
}

Fields

handle: Session

Implementations

impl Session[src]

pub fn open(
    bitfile: &str,
    signature: &str,
    resource: &str
) -> Result<Self, Error>
[src]

pub fn read<T: Datatype>(&self, offset: Offset) -> Result<T, Error> where
    [u8; (T::SIZE_IN_BITS - 1) / 8 + 1]: Sized
[src]

pub fn write<T: Datatype>(&self, offset: Offset, data: &T) -> Result<(), Error> where
    [u8; (T::SIZE_IN_BITS - 1) / 8 + 1]: Sized
[src]

Trait Implementations

impl Drop for Session[src]

Auto Trait Implementations

impl RefUnwindSafe for Session

impl Send for Session

impl Sync for Session

impl Unpin for Session

impl UnwindSafe for Session

Blanket Implementations

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

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

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

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

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

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

type Error = Infallible

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.