Struct ockam_multiaddr::ProtoValue
source · pub struct ProtoValue<'a> { /* private fields */ }
Expand description
Protocol value bytes.
Implementations§
source§impl<'a> ProtoValue<'a>
impl<'a> ProtoValue<'a>
sourcepub fn to_owned<'b>(&self) -> ProtoValue<'b>
pub fn to_owned<'b>(&self) -> ProtoValue<'b>
Clone an owned value of this type.
Trait Implementations§
source§impl<'a> AsRef<[u8]> for ProtoValue<'a>
impl<'a> AsRef<[u8]> for ProtoValue<'a>
source§impl<'a> Clone for ProtoValue<'a>
impl<'a> Clone for ProtoValue<'a>
source§fn clone(&self) -> ProtoValue<'a>
fn clone(&self) -> ProtoValue<'a>
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 moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for ProtoValue<'a>
impl<'a> Send for ProtoValue<'a>
impl<'a> Sync for ProtoValue<'a>
impl<'a> Unpin for ProtoValue<'a>
impl<'a> UnwindSafe for ProtoValue<'a>
Blanket Implementations§
source§impl<D> AsyncTryClone for Dwhere
D: Clone + Sync,
impl<D> AsyncTryClone for Dwhere D: Clone + Sync,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)