pub struct CheckModel {
pub instance: CheckModel,
pub attaching_eid_vec: Vec<u64>,
pub error_model_ready: Sender<Option<()>>,
pub modified_remote_gadgets: Arc<Vec<Option<RemoteGadget>>>,
pub expanded_remote_gadgets: Option<Vec<Option<u64>>>,
pub syndrome: Sender<Option<BitVector>>,
pub syndrome_count: u64,
pub referring_eids: Vec<u64>,
}Fields§
§instance: CheckModel§attaching_eid_vec: Vec<u64>the list of eid attaching to this check model
error_model_ready: Sender<Option<()>>§modified_remote_gadgets: Arc<Vec<Option<RemoteGadget>>>the modified remote gadgets
expanded_remote_gadgets: Option<Vec<Option<u64>>>the expanded remote gadgets
syndrome: Sender<Option<BitVector>>the syndrome value
syndrome_count: u64§referring_eids: Vec<u64>error models (by eid) from OTHER gadgets that reference this check model via remote check model chains. Used to determine safe terminal condition: a committed gadget is a safe terminal only if all referring_eids’ gadgets are also committed.
Auto Trait Implementations§
impl Forget for CheckModel
impl Freeze for CheckModel
impl Move for CheckModel
impl RefUnwindSafe for CheckModel
impl Send for CheckModel
impl Sync for CheckModel
impl Unpin for CheckModel
impl UnsafeUnpin for CheckModel
impl UnwindSafe for CheckModel
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