[][src]Enum protofish::decode::Value

pub enum Value {
    Double(f64),
    Float(f32),
    Int32(i32),
    Int64(i64),
    UInt32(u32),
    UInt64(u64),
    SInt32(i32),
    SInt64(i64),
    Fixed32(u32),
    Fixed64(u64),
    SFixed32(i32),
    SFixed64(i64),
    Bool(bool),
    String(String),
    Bytes(Bytes),
    Packed(PackedArray),
    Message(Box<MessageValue>),
    Enum(EnumValue),
    Incomplete(Bytes),
    Unknown(UnknownValue),
}

Decoded protocol buffer value.

Variants

Double(f64)

double value.

Float(f32)

float value.

Int32(i32)

int32 value.

Int64(i64)

int64 value.

UInt32(u32)

uint32 value.

UInt64(u64)

uint64 value.

SInt32(i32)

sint32 value.

SInt64(i64)

sint64 value.

Fixed32(u32)

fixed32 value.

Fixed64(u64)

fixed64 value.

SFixed32(i32)

sfixed32 value.

SFixed64(i64)

sfixed64 value.

Bool(bool)

bool value.

String(String)

string value.

Bytes(Bytes)

bytes value.

Packed(PackedArray)

A repeated packed value.

Message(Box<MessageValue>)

Message type value.

Enum(EnumValue)

Enum type value.

Incomplete(Bytes)

Value which was incomplete due to missing bytes in the payload.

Unknown(UnknownValue)

Value which wasn't defined in the context.

The wire type allows the decoder to tell how large an unknown value is. This allows the unknown value to be skipped and decoding can continue from the next value.

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

impl PartialEq<Value> for Value[src]

impl StructuralPartialEq for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.