[][src]Struct lib3h_protocol::data_types::Opaque

pub struct Opaque(_);

Represents an opaque vector of bytes. Lib3h will store or transfer this data but will never inspect or interpret its contents

Methods

impl Opaque[src]

pub fn new() -> Self[src]

pub fn as_bytes(self) -> Vec<u8>[src]

Trait Implementations

impl Clone for Opaque[src]

impl Debug for Opaque[src]

impl Deref for Opaque[src]

type Target = Vec<u8>

The resulting type after dereferencing.

impl DerefMut for Opaque[src]

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

impl Display for Opaque[src]

impl Eq for Opaque[src]

impl<'_> From<&'_ [u8]> for Opaque[src]

impl<'_> From<&'_ String> for Opaque[src]

impl<'_> From<&'_ str> for Opaque[src]

impl From<Opaque> for Vec<u8>[src]

impl From<String> for Opaque[src]

impl From<Vec<u8>> for Opaque[src]

impl Hash for Opaque[src]

impl PartialEq<Opaque> for Opaque[src]

impl Serialize for Opaque[src]

impl StructuralEq for Opaque[src]

impl StructuralPartialEq for Opaque[src]

Auto Trait Implementations

impl RefUnwindSafe for Opaque

impl Send for Opaque

impl Sync for Opaque

impl Unpin for Opaque

impl UnwindSafe for Opaque

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> Clone for T where
    T: Clone
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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>,