Struct oe_rpc_common::Bytes
source · [−]Expand description
Wrapper structure around vector of bytes.
Tuple Fields
0: Vec<u8>
Implementations
Trait Implementations
sourceimpl<'a> Deserialize<'a> for Bytes
impl<'a> Deserialize<'a> for Bytes
sourcefn deserialize<D>(deserializer: D) -> Result<Bytes, D::Error> where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Bytes, D::Error> where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Bytes
impl StructuralEq for Bytes
impl StructuralPartialEq for Bytes
Auto Trait Implementations
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more