pub struct MultiHostName(/* private fields */);Implementations§
Source§impl MultiHostName
impl MultiHostName
Sourcepub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
Sourcepub fn to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
pub fn to_canonical_cbor_bytes(&self) -> Vec<u8> ⓘ
- Serialize this type to CBOR bytes using canonical CBOR encodings
Sourcepub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<MultiHostName, JsError>
pub fn from_cbor_bytes(cbor_bytes: &[u8]) -> Result<MultiHostName, JsError>
- Create this type from CBOR bytes
Sourcepub fn to_cbor_hex(&self) -> String
pub fn to_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
Sourcepub fn to_canonical_cbor_hex(&self) -> String
pub fn to_canonical_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes using canonical CBOR encodings as hex bytes
Sourcepub fn from_cbor_hex(cbor_bytes: &str) -> Result<MultiHostName, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<MultiHostName, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
Source§impl MultiHostName
impl MultiHostName
Trait Implementations§
Source§impl AsRef<MultiHostName> for MultiHostName
impl AsRef<MultiHostName> for MultiHostName
Source§fn as_ref(&self) -> &MultiHostName
fn as_ref(&self) -> &MultiHostName
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for MultiHostName
impl Clone for MultiHostName
Source§fn clone(&self) -> MultiHostName
fn clone(&self) -> MultiHostName
Returns a duplicate 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 moreSource§impl Debug for MultiHostName
impl Debug for MultiHostName
Source§impl From<MultiHostName> for JsValue
impl From<MultiHostName> for JsValue
Source§fn from(value: MultiHostName) -> Self
fn from(value: MultiHostName) -> Self
Converts to this type from the input type.
Source§impl From<MultiHostName> for MultiHostName
impl From<MultiHostName> for MultiHostName
Source§fn from(native: MultiHostName) -> Self
fn from(native: MultiHostName) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for MultiHostName
impl FromWasmAbi for MultiHostName
Source§impl Into<MultiHostName> for MultiHostName
impl Into<MultiHostName> for MultiHostName
Source§fn into(self) -> MultiHostName
fn into(self) -> MultiHostName
Converts this type into the (usually inferred) input type.
Source§impl IntoWasmAbi for MultiHostName
impl IntoWasmAbi for MultiHostName
Source§impl LongRefFromWasmAbi for MultiHostName
impl LongRefFromWasmAbi for MultiHostName
Source§impl OptionFromWasmAbi for MultiHostName
impl OptionFromWasmAbi for MultiHostName
Source§impl OptionIntoWasmAbi for MultiHostName
impl OptionIntoWasmAbi for MultiHostName
Source§impl RefFromWasmAbi for MultiHostName
impl RefFromWasmAbi for MultiHostName
Source§type Anchor = RcRef<MultiHostName>
type Anchor = RcRef<MultiHostName>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for MultiHostName
impl RefMutFromWasmAbi for MultiHostName
Source§impl TryFromJsValue for MultiHostName
impl TryFromJsValue for MultiHostName
Source§impl VectorFromWasmAbi for MultiHostName
impl VectorFromWasmAbi for MultiHostName
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[MultiHostName]>
Source§impl VectorIntoJsValue for MultiHostName
impl VectorIntoJsValue for MultiHostName
fn vector_into_jsvalue(vector: Box<[MultiHostName]>) -> JsValue
Source§impl VectorIntoWasmAbi for MultiHostName
impl VectorIntoWasmAbi for MultiHostName
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[MultiHostName]>) -> Self::Abi
Source§impl WasmDescribeVector for MultiHostName
impl WasmDescribeVector for MultiHostName
impl SupportsConstructor for MultiHostName
impl SupportsInstanceProperty for MultiHostName
impl SupportsStaticProperty for MultiHostName
Auto Trait Implementations§
impl Freeze for MultiHostName
impl RefUnwindSafe for MultiHostName
impl Send for MultiHostName
impl Sync for MultiHostName
impl Unpin for MultiHostName
impl UnwindSafe for MultiHostName
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.