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>
impl<I: ReadIo> ReadSession<I>
pub fn initialize( io: I, candidate: CandidateModel, ) -> Result<Self, ReadError<I::Error>>
pub fn model(&self) -> ReadModel
pub fn read_mux_zero(&mut self) -> Result<Vec<MuxRoute>, ReadError<I::Error>>
pub fn read_mix( &mut self, output: u8, ) -> Result<MixReadback, ReadError<I::Error>>
Sourcepub fn apply_mix(
&mut self,
edit: &MixRowEdit,
) -> Result<MixWriteReport, MixWriteError<I::Error>>
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.
Sourcepub fn read_mux_banks(&mut self) -> Result<MuxSnapshot, ReadError<I::Error>>
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.
pub fn apply_mux( &mut self, edit: &MuxEdit, ) -> Result<MuxWriteReport, MuxWriteError<I::Error>>
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> 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