[][src]Enum dqcsim::common::protocol::GatestreamUp

pub enum GatestreamUp {
    CompletedUpTo(SequenceNumber),
    Failure(SequenceNumberString),
    Measured(QubitMeasurementResult),
    Advanced(Cycles),
    ArbSuccess(ArbData),
    ArbFailure(String),
}

Gatestream responses/upstream messages.

Variants

CompletedUpTo(SequenceNumber)

Acknowledges one or more requests.

This message indicates that all commands up to the given sequence number have been executed. It must be sent by the plugin as soon as possible, but does NOT have to be sent for every request necessarily.

Failure(SequenceNumberString)

Indicates that the message with the specified sequence number failed.

Measured(QubitMeasurementResult)

Specifies that the specified qubit was measured.

This may only be sent in response to a gate that contains the referenced qubit in its measured set. This is to be checked when the subsequent CompletedUpTo message is received, as this message does not contain the sequence number itself.

Advanced(Cycles)

Indicates that the simulation was advanced by the specified number of cycles.

ArbSuccess(ArbData)

Indicates that a GatestreamDown::ArbRequest was executed successfully.

ArbFailure(String)

Indicates that a GatestreamDown::ArbRequest failed.

Trait Implementations

impl Debug for GatestreamUp[src]

impl<'de> Deserialize<'de> for GatestreamUp[src]

impl PartialEq<GatestreamUp> for GatestreamUp[src]

impl Serialize for GatestreamUp[src]

impl StructuralPartialEq for GatestreamUp[src]

Auto Trait Implementations

impl RefUnwindSafe for GatestreamUp

impl Send for GatestreamUp

impl Sync for GatestreamUp

impl Unpin for GatestreamUp

impl UnwindSafe for GatestreamUp

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,