Struct hdk::prelude::query::UnsafeBytes
[−]pub struct UnsafeBytes(_);
Expand description
UnsafeBytes the only way to implement a custom round trip through bytes for SerializedBytes It is intended to be an internal implementation in TryFrom implementations The assumption is that any code using UnsafeBytes is NOT valid messagepack data This allows us to enforce that all data round-tripping through SerializedBytes is via TryFrom and also allow for custom non-messagepack canonical representations of data types.
Trait Implementations
impl Clone for UnsafeBytes
impl Clone for UnsafeBytes
pub fn clone(&self) -> UnsafeBytes
pub fn clone(&self) -> UnsafeBytes
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for UnsafeBytes
impl Debug for UnsafeBytes
impl From<SerializedBytes> for UnsafeBytes
impl From<SerializedBytes> for UnsafeBytes
pub fn from(sb: SerializedBytes) -> UnsafeBytes
pub fn from(sb: SerializedBytes) -> UnsafeBytes
Performs the conversion.
impl From<UnsafeBytes> for SerializedBytes
impl From<UnsafeBytes> for SerializedBytes
pub fn from(b: UnsafeBytes) -> SerializedBytes
pub fn from(b: UnsafeBytes) -> SerializedBytes
Performs the conversion.
impl From<UnsafeBytes> for Vec<u8, Global>
impl From<UnsafeBytes> for Vec<u8, Global>
impl From<Vec<u8, Global>> for UnsafeBytes
impl From<Vec<u8, Global>> for UnsafeBytes
pub fn from(v: Vec<u8, Global>) -> UnsafeBytes
pub fn from(v: Vec<u8, Global>) -> UnsafeBytes
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for UnsafeBytes
impl Send for UnsafeBytes
impl Sync for UnsafeBytes
impl Unpin for UnsafeBytes
impl UnwindSafe for UnsafeBytes
Blanket Implementations
Mutably borrows from an owned value. Read more
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more