Skip to main content

ReadSession

Struct ReadSession 

Source
pub struct ReadSession<I> { /* private fields */ }
Expand description

Stateful, bounded protocol. Transfer/protocol failures poison normal calls; failed write restoration and optional bank probes may reinitialize independently.

Implementations§

Source§

impl<I: ReadIo> ReadSession<I>

Source

pub fn initialize( io: I, candidate: CandidateModel, ) -> Result<Self, ReadError<I::Error>>

Source

pub fn model(&self) -> ReadModel

Source

pub fn read_mux_zero(&mut self) -> Result<Vec<MuxRoute>, ReadError<I::Error>>

Source

pub fn read_mix( &mut self, output: u8, ) -> Result<MixReadback, ReadError<I::Error>>

Source

pub fn apply_mix( &mut self, edit: &MixRowEdit, ) -> Result<MixWriteReport, MixWriteError<I::Error>>

Fresh-check, set and verify an entire row. A failed attempted SET always triggers bounded restoration, including when the SET response is lost.

Source

pub fn read_mux_banks(&mut self) -> Result<MuxSnapshot, ReadError<I::Error>>

Probe the complete bank contract against the exact model geometry. Missing banks are never synthesized from another model or selector zero.

Source

pub fn apply_mux( &mut self, edit: &MuxEdit, ) -> Result<MuxWriteReport, MuxWriteError<I::Error>>

Source

pub fn read_all(&mut self) -> Result<RoutingReadback, ReadError<I::Error>>

Auto Trait Implementations§

§

impl<I> Forget for ReadSession<I>

§

impl<I> Freeze for ReadSession<I>
where I: Freeze,

§

impl<I> Move for ReadSession<I>

§

impl<I> RefUnwindSafe for ReadSession<I>
where I: RefUnwindSafe,

§

impl<I> Send for ReadSession<I>
where I: Send,

§

impl<I> Sync for ReadSession<I>
where I: Sync,

§

impl<I> Unpin for ReadSession<I>
where I: Unpin,

§

impl<I> UnsafeUnpin for ReadSession<I>
where I: UnsafeUnpin,

§

impl<I> UnwindSafe for ReadSession<I>
where I: UnwindSafe,

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,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.