pub enum NetworkPayload {
Bytes(Vec<u8>),
Scalar(Scalar),
ScalarBatch(Vec<Scalar>),
Point(StarkPoint),
PointBatch(Vec<StarkPoint>),
}Expand description
The payload of an outbound message
Variants§
Bytes(Vec<u8>)
A byte value
Scalar(Scalar)
A scalar value
ScalarBatch(Vec<Scalar>)
A batch of scalar values
Point(StarkPoint)
A point on the curve
PointBatch(Vec<StarkPoint>)
A batch of points on the curve
Trait Implementations§
Source§impl Clone for NetworkPayload
impl Clone for NetworkPayload
Source§fn clone(&self) -> NetworkPayload
fn clone(&self) -> NetworkPayload
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkPayload
impl Debug for NetworkPayload
Source§impl<'de> Deserialize<'de> for NetworkPayload
impl<'de> Deserialize<'de> for NetworkPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NetworkPayload> for ResultValue
impl From<NetworkPayload> for ResultValue
Source§fn from(value: NetworkPayload) -> Self
fn from(value: NetworkPayload) -> Self
Converts to this type from the input type.
Source§impl From<ResultValue> for NetworkPayload
impl From<ResultValue> for NetworkPayload
Source§fn from(value: ResultValue) -> Self
fn from(value: ResultValue) -> Self
Converts to this type from the input type.
Source§impl From<Scalar> for NetworkPayload
impl From<Scalar> for NetworkPayload
Source§impl From<StarkPoint> for NetworkPayload
impl From<StarkPoint> for NetworkPayload
Source§fn from(point: StarkPoint) -> Self
fn from(point: StarkPoint) -> Self
Converts to this type from the input type.
Source§impl From<Vec<StarkPoint>> for NetworkPayload
impl From<Vec<StarkPoint>> for NetworkPayload
Source§fn from(value: Vec<StarkPoint>) -> Self
fn from(value: Vec<StarkPoint>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetworkPayload
impl RefUnwindSafe for NetworkPayload
impl Send for NetworkPayload
impl Sync for NetworkPayload
impl Unpin for NetworkPayload
impl UnwindSafe for NetworkPayload
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more