pub struct MockDecoderState {
pub decode_calls: Vec<DecodeProblem>,
pub loaded_hypergraphs: HashMap<u64, DecodingHypergraph>,
pub decode_loaded_calls: Vec<LoadedDecodeProblem>,
pub next_hid: u64,
pub reset_count: usize,
pub load_error: Option<Status>,
pub decode_error: Option<Status>,
pub custom_responses: HashMap<Vec<u8>, Vec<u64>>,
}Fields§
§decode_calls: Vec<DecodeProblem>All decode calls with hypergraph and syndrome
loaded_hypergraphs: HashMap<u64, DecodingHypergraph>All loaded hypergraphs by hid
decode_loaded_calls: Vec<LoadedDecodeProblem>All decode_loaded calls
next_hid: u64Next hid to assign
reset_count: usizeNumber of reset calls
load_error: Option<Status>§decode_error: Option<Status>§custom_responses: HashMap<Vec<u8>, Vec<u64>>Custom response provider: if set, returns this subgraph for decode/decode_loaded Key is the syndrome data, value is the subgraph to return
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MockDecoderState
impl !UnwindSafe for MockDecoderState
impl Forget for MockDecoderState
impl Freeze for MockDecoderState
impl Move for MockDecoderState
impl Send for MockDecoderState
impl Sync for MockDecoderState
impl Unpin for MockDecoderState
impl UnsafeUnpin for MockDecoderState
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request