Trait holochain_types::prelude::TryFrom

1.34.0 · source ·
pub trait TryFrom<T>: Sized {
    type Error;

    // Required method
    fn try_from(value: T) -> Result<Self, Self::Error>;
}
Expand description

Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of TryInto.

This is useful when you are doing a type conversion that may trivially succeed but may also need special handling. For example, there is no way to convert an i64 into an i32 using the From trait, because an i64 may contain a value that an i32 cannot represent and so the conversion would lose data. This might be handled by truncating the i64 to an i32 (essentially giving the i64’s value modulo i32::MAX) or by simply returning i32::MAX, or by some other method. The From trait is intended for perfect conversions, so the TryFrom trait informs the programmer when a type conversion could go bad and lets them decide how to handle it.

Generic Implementations

  • TryFrom<T> for U implies TryInto<U> for T
  • try_from is reflexive, which means that TryFrom<T> for T is implemented and cannot fail – the associated Error type for calling T::try_from() on a value of type T is Infallible. When the ! type is stabilized Infallible and ! will be equivalent.

TryFrom<T> can be implemented as follows:

struct GreaterThanZero(i32);

impl TryFrom<i32> for GreaterThanZero {
    type Error = &'static str;

    fn try_from(value: i32) -> Result<Self, Self::Error> {
        if value <= 0 {
            Err("GreaterThanZero only accepts values greater than zero!")
        } else {
            Ok(GreaterThanZero(value))
        }
    }
}

Examples

As described, i32 implements TryFrom<i64>:

let big_number = 1_000_000_000_000i64;
// Silently truncates `big_number`, requires detecting
// and handling the truncation after the fact.
let smaller_number = big_number as i32;
assert_eq!(smaller_number, -727379968);

// Returns an error because `big_number` is too big to
// fit in an `i32`.
let try_smaller_number = i32::try_from(big_number);
assert!(try_smaller_number.is_err());

// Returns `Ok(3)`.
let try_successful_smaller_number = i32::try_from(3);
assert!(try_successful_smaller_number.is_ok());

Required Associated Types§

source

type Error

The type returned in the event of a conversion error.

Required Methods§

source

fn try_from(value: T) -> Result<Self, Self::Error>

Performs the conversion.

Implementors§

source§

impl TryFrom<&NewEntryAction> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireNewEntryAction> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&ChainItems<SignedHashed<Action>>> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&AppStatus> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&DisabledAppReason> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&PausedAppReason> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&StoppedAppReason> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&MustGetAgentActivityResponse> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&DhtOp> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireOps> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&AnyDht> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&AnyLinkable> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&WeighInput> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&GetRecordResponse> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&Signal> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&SystemSignal> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&Action> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&ActionType> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&Entry> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&EntryCreationAction> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&EntryDefsCallbackResult> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&EntryType> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&EntryVisibility> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&Op> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&ActivityRequest> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&Details> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&InitCallbackResult> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&MigrateAgent> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&MigrateAgentCallbackResult> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&RecordEntry> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&ValidateCallbackResult> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&ZomeCallResponse> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&str> for Alphabet

§

impl TryFrom<&str> for Timestamp

§

impl TryFrom<&str> for ServerName

Attempt to make a ServerName from a string by parsing it as a DNS name.

§

type Error = InvalidDnsNameError

source§

impl TryFrom<&()> for holochain_serialized_bytes::SerializedBytes

source§

impl TryFrom<&()> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireCreate> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireDelete> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireUpdate> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireUpdateRelationship> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&AgentActivityResponse<HoloHash<Action>>> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&AgentActivityResponse<SignedHashed<Action>>> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&CoordinatorBundle> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&DnaBundle> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&DnaFile> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&EntryDefBufferKey> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&EntryHashes> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&DnaWasm> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&EntryData> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireEntryOps> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&GetLinksResponse> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&Link> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireCreateLink> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireDeleteLink> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireLinkKey> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireLinkOps> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&MetadataSet> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&EntryRateWeight> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&RateWeight> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&RawGetEntryResponse> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireRecord> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireRecordOps> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&AgentValidationPkg> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&AppEntryDef> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&CapClaim> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&CapSecret> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&ChainFilter<HoloHash<Action>>> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&CloseChain> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&Create<EntryRateWeight>> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&CreateLink<RateWeight>> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&Delete<RateWeight>> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&DeleteAction> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&DeleteLink> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&Dna> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&EntryDefIndex> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&GenesisSelfCheckData> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&InitZomesComplete> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&LinkTag> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&LinkType> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&OpenChain> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&RegisterAgentActivity> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&RegisterCreateLink> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&RegisterDelete> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&RegisterDeleteLink> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&RegisterUpdate> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&ScopedZomeTypesSet> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&StoreEntry> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&StoreRecord> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&Update<EntryRateWeight>> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&UpdateAction> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&ZomeIndex> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&ZomeInfo> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&String> for PathAndQuery

§

impl TryFrom<&String> for Timestamp

source§

impl TryFrom<&BigInt> for i8

source§

impl TryFrom<&BigInt> for i16

source§

impl TryFrom<&BigInt> for i32

source§

impl TryFrom<&BigInt> for i64

source§

impl TryFrom<&BigInt> for i128

source§

impl TryFrom<&BigInt> for isize

source§

impl TryFrom<&BigInt> for u8

source§

impl TryFrom<&BigInt> for u16

source§

impl TryFrom<&BigInt> for u32

source§

impl TryFrom<&BigInt> for u64

source§

impl TryFrom<&BigInt> for u128

source§

impl TryFrom<&BigInt> for usize

source§

impl TryFrom<&BigInt> for BigUint

source§

impl TryFrom<&BigUint> for i8

source§

impl TryFrom<&BigUint> for i16

source§

impl TryFrom<&BigUint> for i32

source§

impl TryFrom<&BigUint> for i64

source§

impl TryFrom<&BigUint> for i128

source§

impl TryFrom<&BigUint> for isize

source§

impl TryFrom<&BigUint> for u8

source§

impl TryFrom<&BigUint> for u16

source§

impl TryFrom<&BigUint> for u32

source§

impl TryFrom<&BigUint> for u64

source§

impl TryFrom<&BigUint> for u128

source§

impl TryFrom<&BigUint> for usize

source§

impl TryFrom<&AgentActivity> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&AgentInfo> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&CellId> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&ChainQueryFilter> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&CreateInput> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&DeterministicGetAgentActivityFilter> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&DnaDef> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&EntryDetails> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&Link> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&LinkDetails> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&Record<SignedHashed<Action>>> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&RecordDetails> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&RemoteSignal> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&Sign> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&SignedAction> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&Timestamp> for DateTime<Utc>

§

impl TryFrom<&VerifySignature> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&Warrant> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WasmZome> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&X25519PubKey> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&X25519XSalsa20Poly1305Decrypt> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&X25519XSalsa20Poly1305Encrypt> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&XSalsa20Poly1305Decrypt> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&XSalsa20Poly1305Encrypt> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&XSalsa20Poly1305KeyRef> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&XSalsa20Poly1305SharedSecretExport> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&XSalsa20Poly1305SharedSecretIngest> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&YamlProperties> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<&XSalsa20Poly1305Nonce> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&BoolWrap> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&StringWrap> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&U32Wrap> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<&WireContext> for holochain_serialized_bytes::SerializedBytes

source§

impl TryFrom<&WireLink> for holochain_serialized_bytes::SerializedBytes

source§

impl TryFrom<&WireLinks> for holochain_serialized_bytes::SerializedBytes

source§

impl TryFrom<&WireSpanContext> for holochain_serialized_bytes::SerializedBytes

§

impl TryFrom<&[u8]> for CapSecret

§

impl TryFrom<&[u8]> for Hash256Bits

§

impl TryFrom<&[u8]> for Hash512Bits

§

impl TryFrom<&[u8]> for Signature

§

impl TryFrom<&[u8]> for X25519PubKey

§

impl TryFrom<&[u8]> for XSalsa20Poly1305Nonce

source§

impl TryFrom<&[u8]> for Nonce256Bits

§

impl TryFrom<&[u8]> for KeyPair

§

type Error = RcgenError

§

impl TryFrom<&[u8]> for ReasonPhrase

§

type Error = InvalidReasonPhrase

source§

impl TryFrom<NewEntryAction> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireNewEntryAction> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<ChainItems<SignedHashed<Action>>> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<AppStatus> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<DisabledAppReason> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<PausedAppReason> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<StoppedAppReason> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<MustGetAgentActivityResponse> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<DhtOp> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireOps> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<DnaManifest> for ValidatedDnaManifest

source§

impl TryFrom<AnyDht> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<AnyLinkable> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<WeighInput> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<GetRecordResponse> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<Signal> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<SystemSignal> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<Action> for NewEntryAction

§

impl TryFrom<Action> for EntryCreationAction

§

impl TryFrom<Action> for CreateLink<RateWeight>

§

impl TryFrom<Action> for Delete<RateWeight>

§

impl TryFrom<Action> for Update<EntryRateWeight>

§

impl TryFrom<Action> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<ActionType> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<Entry> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<EntryCreationAction> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<EntryDefsCallbackResult> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<EntryType> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<EntryVisibility> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<Op> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<ActivityRequest> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<Details> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<InitCallbackResult> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<MigrateAgent> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<MigrateAgentCallbackResult> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<RecordEntry> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<ValidateCallbackResult> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<ZomeCallResponse> for holochain_types::prelude::warrant::SerializedBytes

1.59.0 · source§

impl TryFrom<char> for u8

Map char with code point in U+0000..=U+00FF to byte in 0x00..=0xFF with same value, failing if the code point is greater than U+00FF.

See impl From<u8> for char for details on the encoding.

source§

impl TryFrom<i8> for u8

source§

impl TryFrom<i8> for u16

source§

impl TryFrom<i8> for u32

source§

impl TryFrom<i8> for u64

source§

impl TryFrom<i8> for u128

source§

impl TryFrom<i8> for usize

1.46.0 · source§

impl TryFrom<i8> for NonZeroI8

source§

impl TryFrom<i8> for BigUint

source§

impl TryFrom<i16> for i8

source§

impl TryFrom<i16> for u8

source§

impl TryFrom<i16> for u16

source§

impl TryFrom<i16> for u32

source§

impl TryFrom<i16> for u64

source§

impl TryFrom<i16> for u128

source§

impl TryFrom<i16> for usize

1.46.0 · source§

impl TryFrom<i16> for NonZeroI16

source§

impl TryFrom<i16> for BigUint

source§

impl TryFrom<i32> for ValidationStatus

§

type Error = TryFromPrimitiveError<ValidationStatus>

source§

impl TryFrom<i32> for i8

source§

impl TryFrom<i32> for i16

source§

impl TryFrom<i32> for isize

source§

impl TryFrom<i32> for u8

source§

impl TryFrom<i32> for u16

source§

impl TryFrom<i32> for u32

source§

impl TryFrom<i32> for u64

source§

impl TryFrom<i32> for u128

source§

impl TryFrom<i32> for usize

1.46.0 · source§

impl TryFrom<i32> for NonZeroI32

source§

impl TryFrom<i32> for BigUint

source§

impl TryFrom<i64> for i8

source§

impl TryFrom<i64> for i16

source§

impl TryFrom<i64> for i32

source§

impl TryFrom<i64> for isize

source§

impl TryFrom<i64> for u8

source§

impl TryFrom<i64> for u16

source§

impl TryFrom<i64> for u32

source§

impl TryFrom<i64> for u64

source§

impl TryFrom<i64> for u128

source§

impl TryFrom<i64> for usize

1.46.0 · source§

impl TryFrom<i64> for NonZeroI64

source§

impl TryFrom<i64> for BigUint

source§

impl TryFrom<i128> for i8

source§

impl TryFrom<i128> for i16

source§

impl TryFrom<i128> for i32

source§

impl TryFrom<i128> for i64

source§

impl TryFrom<i128> for isize

source§

impl TryFrom<i128> for u8

source§

impl TryFrom<i128> for u16

source§

impl TryFrom<i128> for u32

source§

impl TryFrom<i128> for u64

source§

impl TryFrom<i128> for u128

source§

impl TryFrom<i128> for usize

1.46.0 · source§

impl TryFrom<i128> for NonZeroI128

source§

impl TryFrom<i128> for BigUint

source§

impl TryFrom<isize> for i8

source§

impl TryFrom<isize> for i16

source§

impl TryFrom<isize> for i32

source§

impl TryFrom<isize> for i64

source§

impl TryFrom<isize> for i128

source§

impl TryFrom<isize> for u8

source§

impl TryFrom<isize> for u16

source§

impl TryFrom<isize> for u32

source§

impl TryFrom<isize> for u64

source§

impl TryFrom<isize> for u128

source§

impl TryFrom<isize> for usize

1.46.0 · source§

impl TryFrom<isize> for NonZeroIsize

source§

impl TryFrom<isize> for BigUint

source§

impl TryFrom<u8> for i8

1.46.0 · source§

impl TryFrom<u8> for NonZeroU8

§

impl TryFrom<u8> for MissingOpsStatus

§

type Error = KitsuneError

§

impl TryFrom<u8> for Month

§

type Error = ComponentRange

source§

impl TryFrom<u16> for i8

source§

impl TryFrom<u16> for i16

source§

impl TryFrom<u16> for isize

source§

impl TryFrom<u16> for u8

1.46.0 · source§

impl TryFrom<u16> for NonZeroU16

source§

impl TryFrom<u16> for StatusCode

§

impl TryFrom<u16> for Opcode

§

type Error = ()

§

impl TryFrom<u16> for PatternID

§

type Error = PatternIDError

§

impl TryFrom<u16> for StateID

§

type Error = StateIDError

source§

impl TryFrom<u32> for char

source§

impl TryFrom<u32> for i8

source§

impl TryFrom<u32> for i16

source§

impl TryFrom<u32> for i32

source§

impl TryFrom<u32> for isize

source§

impl TryFrom<u32> for u8

source§

impl TryFrom<u32> for u16

source§

impl TryFrom<u32> for usize

1.46.0 · source§

impl TryFrom<u32> for NonZeroU32

§

impl TryFrom<u32> for PatternID

§

type Error = PatternIDError

§

impl TryFrom<u32> for StateID

§

type Error = StateIDError

source§

impl TryFrom<u64> for i8

source§

impl TryFrom<u64> for i16

source§

impl TryFrom<u64> for i32

source§

impl TryFrom<u64> for i64

source§

impl TryFrom<u64> for isize

source§

impl TryFrom<u64> for u8

source§

impl TryFrom<u64> for u16

source§

impl TryFrom<u64> for u32

source§

impl TryFrom<u64> for usize

1.46.0 · source§

impl TryFrom<u64> for NonZeroU64

§

impl TryFrom<u64> for PatternID

§

type Error = PatternIDError

§

impl TryFrom<u64> for StateID

§

type Error = StateIDError

§

impl TryFrom<u64> for VarInt

§

type Error = VarIntBoundsExceeded

source§

impl TryFrom<u128> for i8

source§

impl TryFrom<u128> for i16

source§

impl TryFrom<u128> for i32

source§

impl TryFrom<u128> for i64

source§

impl TryFrom<u128> for i128

source§

impl TryFrom<u128> for isize

source§

impl TryFrom<u128> for u8

source§

impl TryFrom<u128> for u16

source§

impl TryFrom<u128> for u32

source§

impl TryFrom<u128> for u64

source§

impl TryFrom<u128> for usize

1.46.0 · source§

impl TryFrom<u128> for NonZeroU128

§

impl TryFrom<u128> for VarInt

§

type Error = VarIntBoundsExceeded

source§

impl TryFrom<()> for holochain_serialized_bytes::SerializedBytes

source§

impl TryFrom<()> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<usize> for i8

source§

impl TryFrom<usize> for i16

source§

impl TryFrom<usize> for i32

source§

impl TryFrom<usize> for i64

source§

impl TryFrom<usize> for i128

source§

impl TryFrom<usize> for isize

source§

impl TryFrom<usize> for u8

source§

impl TryFrom<usize> for u16

source§

impl TryFrom<usize> for u32

source§

impl TryFrom<usize> for u64

source§

impl TryFrom<usize> for u128

1.46.0 · source§

impl TryFrom<usize> for NonZeroUsize

source§

impl TryFrom<usize> for Alignment

§

impl TryFrom<usize> for Gid

§

type Error = <u32 as TryFrom<usize>>::Error

§

impl TryFrom<usize> for PatternID

§

type Error = PatternIDError

§

impl TryFrom<usize> for StateID

§

type Error = StateIDError

§

impl TryFrom<usize> for Uid

§

type Error = <u32 as TryFrom<usize>>::Error

§

impl TryFrom<usize> for VarInt

§

type Error = VarIntBoundsExceeded

source§

impl TryFrom<WireCreate> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireDelete> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireUpdate> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireUpdateRelationship> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<AgentActivityResponse<HoloHash<Action>>> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<AgentActivityResponse<SignedHashed<Action>>> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<CoordinatorBundle> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<DnaBundle> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<DnaFile> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<DnaManifestV1> for ValidatedDnaManifest

source§

impl TryFrom<EntryDefBufferKey> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<EntryHashes> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<DnaWasm> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<EntryData> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireEntryOps> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<GetLinksResponse> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<Link> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireCreateLink> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireDeleteLink> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireLinkKey> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireLinkOps> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<MetadataSet> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<EntryRateWeight> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<RateWeight> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<RawGetEntryResponse> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireRecord> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WireRecordOps> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<AgentValidationPkg> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<AppEntryDef> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<CapClaim> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<CapSecret> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<ChainFilter<HoloHash<Action>>> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<CloseChain> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<Create<EntryRateWeight>> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<CreateLink<RateWeight>> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<Delete<RateWeight>> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<DeleteAction> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<DeleteLink> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<Dna> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<EntryDefIndex> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<GenesisSelfCheckData> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<InitZomesComplete> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<LinkTag> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<LinkType> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<OpenChain> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<RegisterAgentActivity> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<RegisterCreateLink> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<RegisterDelete> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<RegisterDeleteLink> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<RegisterUpdate> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<ScopedZomeTypesSet> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<StoreEntry> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<StoreRecord> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<Update<EntryRateWeight>> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<UpdateAction> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<ZomeIndex> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<ZomeInfo> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<String> for HeaderName

source§

impl TryFrom<String> for HeaderValue

source§

impl TryFrom<String> for Authority

source§

impl TryFrom<String> for PathAndQuery

source§

impl TryFrom<String> for Uri

source§

impl TryFrom<String> for CloneId

§

impl TryFrom<String> for Timestamp

§

impl TryFrom<String> for ReasonPhrase

§

type Error = InvalidReasonPhrase

§

impl TryFrom<Vec<u8, Global>> for CapSecret

§

impl TryFrom<Vec<u8, Global>> for Hash256Bits

§

impl TryFrom<Vec<u8, Global>> for Hash512Bits

source§

impl TryFrom<Vec<u8, Global>> for HeaderName

source§

impl TryFrom<Vec<u8, Global>> for HeaderValue

source§

impl TryFrom<Vec<u8, Global>> for Authority

§

impl TryFrom<Vec<u8, Global>> for Signature

§

impl TryFrom<Vec<u8, Global>> for X25519PubKey

§

impl TryFrom<Vec<u8, Global>> for XSalsa20Poly1305Nonce

source§

impl TryFrom<Vec<u8, Global>> for Nonce256Bits

§

impl TryFrom<Vec<u8, Global>> for KeyPair

§

type Error = RcgenError

§

impl TryFrom<Vec<u8, Global>> for ReasonPhrase

§

type Error = InvalidReasonPhrase

1.49.0 · source§

impl TryFrom<NonZeroI8> for NonZeroU8

1.49.0 · source§

impl TryFrom<NonZeroI8> for NonZeroU16

1.49.0 · source§

impl TryFrom<NonZeroI8> for NonZeroU32

1.49.0 · source§

impl TryFrom<NonZeroI8> for NonZeroU64

1.49.0 · source§

impl TryFrom<NonZeroI8> for NonZeroU128

1.49.0 · source§

impl TryFrom<NonZeroI8> for NonZeroUsize

1.49.0 · source§

impl TryFrom<NonZeroI16> for NonZeroI8

1.49.0 · source§

impl TryFrom<NonZeroI16> for NonZeroU8

1.49.0 · source§

impl TryFrom<NonZeroI16> for NonZeroU16

1.49.0 · source§

impl TryFrom<NonZeroI16> for NonZeroU32

1.49.0 · source§

impl TryFrom<NonZeroI16> for NonZeroU64

1.49.0 · source§

impl TryFrom<NonZeroI16> for NonZeroU128

1.49.0 · source§

impl TryFrom<NonZeroI16> for NonZeroUsize

1.49.0 · source§

impl TryFrom<NonZeroI32> for NonZeroI8

1.49.0 · source§

impl TryFrom<NonZeroI32> for NonZeroI16

1.49.0 · source§

impl TryFrom<NonZeroI32> for NonZeroIsize

1.49.0 · source§

impl TryFrom<NonZeroI32> for NonZeroU8

1.49.0 · source§

impl TryFrom<NonZeroI32> for NonZeroU16

1.49.0 · source§

impl TryFrom<NonZeroI32> for NonZeroU32

1.49.0 · source§

impl TryFrom<NonZeroI32> for NonZeroU64

1.49.0 · source§

impl TryFrom<NonZeroI32> for NonZeroU128

1.49.0 · source§

impl TryFrom<NonZeroI32> for NonZeroUsize

1.49.0 · source§

impl TryFrom<NonZeroI64> for NonZeroI8

1.49.0 · source§

impl TryFrom<NonZeroI64> for NonZeroI16

1.49.0 · source§

impl TryFrom<NonZeroI64> for NonZeroI32

1.49.0 · source§

impl TryFrom<NonZeroI64> for NonZeroIsize

1.49.0 · source§

impl TryFrom<NonZeroI64> for NonZeroU8

1.49.0 · source§

impl TryFrom<NonZeroI64> for NonZeroU16

1.49.0 · source§

impl TryFrom<NonZeroI64> for NonZeroU32

1.49.0 · source§

impl TryFrom<NonZeroI64> for NonZeroU64

1.49.0 · source§

impl TryFrom<NonZeroI64> for NonZeroU128

1.49.0 · source§

impl TryFrom<NonZeroI64> for NonZeroUsize

1.49.0 · source§

impl TryFrom<NonZeroI128> for NonZeroI8

1.49.0 · source§

impl TryFrom<NonZeroI128> for NonZeroI16

1.49.0 · source§

impl TryFrom<NonZeroI128> for NonZeroI32

1.49.0 · source§

impl TryFrom<NonZeroI128> for NonZeroI64

1.49.0 · source§

impl TryFrom<NonZeroI128> for NonZeroIsize

1.49.0 · source§

impl TryFrom<NonZeroI128> for NonZeroU8

1.49.0 · source§

impl TryFrom<NonZeroI128> for NonZeroU16

1.49.0 · source§

impl TryFrom<NonZeroI128> for NonZeroU32

1.49.0 · source§

impl TryFrom<NonZeroI128> for NonZeroU64

1.49.0 · source§

impl TryFrom<NonZeroI128> for NonZeroU128

1.49.0 · source§

impl TryFrom<NonZeroI128> for NonZeroUsize

1.49.0 · source§

impl TryFrom<NonZeroIsize> for NonZeroI8

1.49.0 · source§

impl TryFrom<NonZeroIsize> for NonZeroI16

1.49.0 · source§

impl TryFrom<NonZeroIsize> for NonZeroI32

1.49.0 · source§

impl TryFrom<NonZeroIsize> for NonZeroI64

1.49.0 · source§

impl TryFrom<NonZeroIsize> for NonZeroI128

1.49.0 · source§

impl TryFrom<NonZeroIsize> for NonZeroU8

1.49.0 · source§

impl TryFrom<NonZeroIsize> for NonZeroU16

1.49.0 · source§

impl TryFrom<NonZeroIsize> for NonZeroU32

1.49.0 · source§

impl TryFrom<NonZeroIsize> for NonZeroU64

1.49.0 · source§

impl TryFrom<NonZeroIsize> for NonZeroU128

1.49.0 · source§

impl TryFrom<NonZeroIsize> for NonZeroUsize

1.49.0 · source§

impl TryFrom<NonZeroU8> for NonZeroI8

1.49.0 · source§

impl TryFrom<NonZeroU16> for NonZeroI8

1.49.0 · source§

impl TryFrom<NonZeroU16> for NonZeroI16

1.49.0 · source§

impl TryFrom<NonZeroU16> for NonZeroIsize

1.49.0 · source§

impl TryFrom<NonZeroU16> for NonZeroU8

1.49.0 · source§

impl TryFrom<NonZeroU32> for NonZeroI8

1.49.0 · source§

impl TryFrom<NonZeroU32> for NonZeroI16

1.49.0 · source§

impl TryFrom<NonZeroU32> for NonZeroI32

1.49.0 · source§

impl TryFrom<NonZeroU32> for NonZeroIsize

1.49.0 · source§

impl TryFrom<NonZeroU32> for NonZeroU8

1.49.0 · source§

impl TryFrom<NonZeroU32> for NonZeroU16

1.49.0 · source§

impl TryFrom<NonZeroU32> for NonZeroUsize

§

impl TryFrom<NonZeroU32> for Opcode

§

type Error = ()

1.49.0 · source§

impl TryFrom<NonZeroU64> for NonZeroI8

1.49.0 · source§

impl TryFrom<NonZeroU64> for NonZeroI16

1.49.0 · source§

impl TryFrom<NonZeroU64> for NonZeroI32

1.49.0 · source§

impl TryFrom<NonZeroU64> for NonZeroI64

1.49.0 · source§

impl TryFrom<NonZeroU64> for NonZeroIsize

1.49.0 · source§

impl TryFrom<NonZeroU64> for NonZeroU8

1.49.0 · source§

impl TryFrom<NonZeroU64> for NonZeroU16

1.49.0 · source§

impl TryFrom<NonZeroU64> for NonZeroU32

1.49.0 · source§

impl TryFrom<NonZeroU64> for NonZeroUsize

1.49.0 · source§

impl TryFrom<NonZeroU128> for NonZeroI8

1.49.0 · source§

impl TryFrom<NonZeroU128> for NonZeroI16

1.49.0 · source§

impl TryFrom<NonZeroU128> for NonZeroI32

1.49.0 · source§

impl TryFrom<NonZeroU128> for NonZeroI64

1.49.0 · source§

impl TryFrom<NonZeroU128> for NonZeroI128

1.49.0 · source§

impl TryFrom<NonZeroU128> for NonZeroIsize

1.49.0 · source§

impl TryFrom<NonZeroU128> for NonZeroU8

1.49.0 · source§

impl TryFrom<NonZeroU128> for NonZeroU16

1.49.0 · source§

impl TryFrom<NonZeroU128> for NonZeroU32

1.49.0 · source§

impl TryFrom<NonZeroU128> for NonZeroU64

1.49.0 · source§

impl TryFrom<NonZeroU128> for NonZeroUsize

1.49.0 · source§

impl TryFrom<NonZeroUsize> for NonZeroI8

1.49.0 · source§

impl TryFrom<NonZeroUsize> for NonZeroI16

1.49.0 · source§

impl TryFrom<NonZeroUsize> for NonZeroI32

1.49.0 · source§

impl TryFrom<NonZeroUsize> for NonZeroI64

1.49.0 · source§

impl TryFrom<NonZeroUsize> for NonZeroI128

1.49.0 · source§

impl TryFrom<NonZeroUsize> for NonZeroIsize

1.49.0 · source§

impl TryFrom<NonZeroUsize> for NonZeroU8

1.49.0 · source§

impl TryFrom<NonZeroUsize> for NonZeroU16

1.49.0 · source§

impl TryFrom<NonZeroUsize> for NonZeroU32

1.49.0 · source§

impl TryFrom<NonZeroUsize> for NonZeroU64

1.49.0 · source§

impl TryFrom<NonZeroUsize> for NonZeroU128

source§

impl TryFrom<NonZeroUsize> for Alignment

§

impl TryFrom<Duration> for Timestamp

§

impl TryFrom<Duration> for Duration

§

type Error = ConversionRange

§

impl TryFrom<Duration> for IdleTimeout

§

type Error = VarIntBoundsExceeded

source§

impl TryFrom<TcpListener> for tokio::net::tcp::listener::TcpListener

§

type Error = Error

§

impl TryFrom<TcpListener> for Async<TcpListener>

§

type Error = Error

source§

impl TryFrom<TcpStream> for tokio::net::tcp::stream::TcpStream

§

type Error = Error

§

impl TryFrom<TcpStream> for Async<TcpStream>

§

type Error = Error

source§

impl TryFrom<UdpSocket> for tokio::net::udp::UdpSocket

§

type Error = Error

§

impl TryFrom<UdpSocket> for Async<UdpSocket>

§

type Error = Error

source§

impl TryFrom<UnixDatagram> for tokio::net::unix::datagram::socket::UnixDatagram

§

type Error = Error

§

impl TryFrom<UnixDatagram> for Async<UnixDatagram>

§

type Error = Error

source§

impl TryFrom<UnixListener> for tokio::net::unix::listener::UnixListener

§

type Error = Error

§

impl TryFrom<UnixListener> for Async<UnixListener>

§

type Error = Error

source§

impl TryFrom<UnixStream> for tokio::net::unix::stream::UnixStream

§

type Error = Error

§

impl TryFrom<UnixStream> for Async<UnixStream>

§

type Error = Error

source§

impl TryFrom<SystemTime> for Time

source§

impl TryFrom<SerializedBytes> for ()

source§

impl TryFrom<Parts> for Uri

source§

impl TryFrom<BigInt> for i8

source§

impl TryFrom<BigInt> for i16

source§

impl TryFrom<BigInt> for i32

source§

impl TryFrom<BigInt> for i64

source§

impl TryFrom<BigInt> for i128

source§

impl TryFrom<BigInt> for isize

source§

impl TryFrom<BigInt> for u8

source§

impl TryFrom<BigInt> for u16

source§

impl TryFrom<BigInt> for u32

source§

impl TryFrom<BigInt> for u64

source§

impl TryFrom<BigInt> for u128

source§

impl TryFrom<BigInt> for usize

source§

impl TryFrom<BigInt> for BigUint

source§

impl TryFrom<BigUint> for i8

source§

impl TryFrom<BigUint> for i16

source§

impl TryFrom<BigUint> for i32

source§

impl TryFrom<BigUint> for i64

source§

impl TryFrom<BigUint> for i128

source§

impl TryFrom<BigUint> for isize

source§

impl TryFrom<BigUint> for u8

source§

impl TryFrom<BigUint> for u16

source§

impl TryFrom<BigUint> for u32

source§

impl TryFrom<BigUint> for u64

source§

impl TryFrom<BigUint> for u128

source§

impl TryFrom<BigUint> for usize

source§

impl TryFrom<Request> for http::request::Request<Body>

§

type Error = Error

source§

impl TryFrom<AgentActivity> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<AgentInfo> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<CellId> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<ChainQueryFilter> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<CreateInput> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<DeterministicGetAgentActivityFilter> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<DnaDef> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<EntryDetails> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<Link> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<LinkDetails> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<Record<SignedHashed<Action>>> for CreateLink<RateWeight>

§

impl TryFrom<Record<SignedHashed<Action>>> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<RecordDetails> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<RemoteSignal> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<Sign> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<SignedAction> for WireNewEntryAction

source§

impl TryFrom<SignedAction> for WireDelete

source§

impl TryFrom<SignedAction> for WireUpdateRelationship

source§

impl TryFrom<SignedAction> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<SignedHashed<Action>> for WireNewEntryAction

source§

impl TryFrom<SignedHashed<Action>> for WireDelete

source§

impl TryFrom<SignedHashed<Action>> for WireUpdate

source§

impl TryFrom<SignedHashed<Action>> for WireUpdateRelationship

§

impl TryFrom<Timestamp> for DateTime<Utc>

§

impl TryFrom<VerifySignature> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<Warrant> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<WasmZome> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<X25519PubKey> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<X25519XSalsa20Poly1305Decrypt> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<X25519XSalsa20Poly1305Encrypt> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<XSalsa20Poly1305Decrypt> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<XSalsa20Poly1305Encrypt> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<XSalsa20Poly1305KeyRef> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<XSalsa20Poly1305SharedSecretExport> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<XSalsa20Poly1305SharedSecretIngest> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<YamlProperties> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<SerializedBytes> for NewEntryAction

source§

impl TryFrom<SerializedBytes> for WireNewEntryAction

source§

impl TryFrom<SerializedBytes> for ChainItems

source§

impl TryFrom<SerializedBytes> for AppStatus

source§

impl TryFrom<SerializedBytes> for DisabledAppReason

source§

impl TryFrom<SerializedBytes> for PausedAppReason

source§

impl TryFrom<SerializedBytes> for StoppedAppReason

source§

impl TryFrom<SerializedBytes> for MustGetAgentActivityResponse

source§

impl TryFrom<SerializedBytes> for DhtOp

source§

impl TryFrom<SerializedBytes> for WireOps

source§

impl TryFrom<SerializedBytes> for AnyDht

source§

impl TryFrom<SerializedBytes> for AnyLinkable

§

impl TryFrom<SerializedBytes> for WeighInput

source§

impl TryFrom<SerializedBytes> for GetRecordResponse

source§

impl TryFrom<SerializedBytes> for Signal

source§

impl TryFrom<SerializedBytes> for SystemSignal

§

impl TryFrom<SerializedBytes> for Action

§

impl TryFrom<SerializedBytes> for ActionType

§

impl TryFrom<SerializedBytes> for Entry

§

impl TryFrom<SerializedBytes> for EntryCreationAction

§

impl TryFrom<SerializedBytes> for EntryDefsCallbackResult

§

impl TryFrom<SerializedBytes> for EntryType

§

impl TryFrom<SerializedBytes> for EntryVisibility

§

impl TryFrom<SerializedBytes> for Op

source§

impl TryFrom<SerializedBytes> for ActivityRequest

source§

impl TryFrom<SerializedBytes> for Details

source§

impl TryFrom<SerializedBytes> for InitCallbackResult

source§

impl TryFrom<SerializedBytes> for MigrateAgent

source§

impl TryFrom<SerializedBytes> for MigrateAgentCallbackResult

§

impl TryFrom<SerializedBytes> for RecordEntry

§

impl TryFrom<SerializedBytes> for ValidateCallbackResult

source§

impl TryFrom<SerializedBytes> for ZomeCallResponse

source§

impl TryFrom<SerializedBytes> for ()

source§

impl TryFrom<SerializedBytes> for WireCreate

source§

impl TryFrom<SerializedBytes> for WireDelete

source§

impl TryFrom<SerializedBytes> for WireUpdate

source§

impl TryFrom<SerializedBytes> for WireUpdateRelationship

source§

impl TryFrom<SerializedBytes> for AgentActivityResponse

source§

impl TryFrom<SerializedBytes> for AgentActivityResponse<ActionHash>

source§

impl TryFrom<SerializedBytes> for CoordinatorBundle

source§

impl TryFrom<SerializedBytes> for DnaBundle

source§

impl TryFrom<SerializedBytes> for DnaFile

source§

impl TryFrom<SerializedBytes> for EntryDefBufferKey

source§

impl TryFrom<SerializedBytes> for EntryHashes

source§

impl TryFrom<SerializedBytes> for DnaWasm

source§

impl TryFrom<SerializedBytes> for EntryData

source§

impl TryFrom<SerializedBytes> for WireEntryOps

source§

impl TryFrom<SerializedBytes> for GetLinksResponse

source§

impl TryFrom<SerializedBytes> for WireLinkKey

source§

impl TryFrom<SerializedBytes> for WireLinkOps

source§

impl TryFrom<SerializedBytes> for MetadataSet

§

impl TryFrom<SerializedBytes> for EntryRateWeight

§

impl TryFrom<SerializedBytes> for RateWeight

source§

impl TryFrom<SerializedBytes> for RawGetEntryResponse

source§

impl TryFrom<SerializedBytes> for WireRecord

source§

impl TryFrom<SerializedBytes> for WireRecordOps

§

impl TryFrom<SerializedBytes> for AgentValidationPkg

§

impl TryFrom<SerializedBytes> for AppEntryBytes

§

impl TryFrom<SerializedBytes> for AppEntryDef

§

impl TryFrom<SerializedBytes> for CapClaim

§

impl TryFrom<SerializedBytes> for CapSecret

§

impl TryFrom<SerializedBytes> for ChainFilter<HoloHash<Action>>

§

impl TryFrom<SerializedBytes> for CloseChain

§

impl TryFrom<SerializedBytes> for Create<EntryRateWeight>

§

impl TryFrom<SerializedBytes> for CreateLink<RateWeight>

§

impl TryFrom<SerializedBytes> for Delete<RateWeight>

§

impl TryFrom<SerializedBytes> for DeleteAction

§

impl TryFrom<SerializedBytes> for Dna

§

impl TryFrom<SerializedBytes> for EntryDefIndex

§

impl TryFrom<SerializedBytes> for GenesisSelfCheckData

§

impl TryFrom<SerializedBytes> for InitZomesComplete

§

impl TryFrom<SerializedBytes> for LinkTag

§

impl TryFrom<SerializedBytes> for LinkType

§

impl TryFrom<SerializedBytes> for OpenChain

§

impl TryFrom<SerializedBytes> for RegisterAgentActivity

§

impl TryFrom<SerializedBytes> for RegisterDelete

§

impl TryFrom<SerializedBytes> for RegisterUpdate

§

impl TryFrom<SerializedBytes> for ScopedZomeTypesSet

§

impl TryFrom<SerializedBytes> for StoreEntry

§

impl TryFrom<SerializedBytes> for StoreRecord

§

impl TryFrom<SerializedBytes> for Update<EntryRateWeight>

§

impl TryFrom<SerializedBytes> for UpdateAction

§

impl TryFrom<SerializedBytes> for ZomeIndex

§

impl TryFrom<SerializedBytes> for ZomeInfo

source§

impl TryFrom<SerializedBytes> for AgentActivity

source§

impl TryFrom<SerializedBytes> for AgentInfo

source§

impl TryFrom<SerializedBytes> for CellId

source§

impl TryFrom<SerializedBytes> for ChainQueryFilter

source§

impl TryFrom<SerializedBytes> for CreateInput

source§

impl TryFrom<SerializedBytes> for DeterministicGetAgentActivityFilter

source§

impl TryFrom<SerializedBytes> for DnaDef

source§

impl TryFrom<SerializedBytes> for EntryDetails

source§

impl TryFrom<SerializedBytes> for LinkDetails

§

impl TryFrom<SerializedBytes> for Record<SignedHashed<Action>>

source§

impl TryFrom<SerializedBytes> for RecordDetails

source§

impl TryFrom<SerializedBytes> for RemoteSignal

source§

impl TryFrom<SerializedBytes> for Sign

source§

impl TryFrom<SerializedBytes> for SignedAction

§

impl TryFrom<SerializedBytes> for VerifySignature

source§

impl TryFrom<SerializedBytes> for Warrant

source§

impl TryFrom<SerializedBytes> for WasmZome

§

impl TryFrom<SerializedBytes> for X25519PubKey

§

impl TryFrom<SerializedBytes> for X25519XSalsa20Poly1305Decrypt

source§

impl TryFrom<SerializedBytes> for X25519XSalsa20Poly1305Encrypt

§

impl TryFrom<SerializedBytes> for XSalsa20Poly1305Decrypt

source§

impl TryFrom<SerializedBytes> for XSalsa20Poly1305Encrypt

§

impl TryFrom<SerializedBytes> for XSalsa20Poly1305KeyRef

source§

impl TryFrom<SerializedBytes> for XSalsa20Poly1305SharedSecretExport

source§

impl TryFrom<SerializedBytes> for XSalsa20Poly1305SharedSecretIngest

source§

impl TryFrom<SerializedBytes> for YamlProperties

§

impl TryFrom<SerializedBytes> for XSalsa20Poly1305Nonce

§

impl TryFrom<XSalsa20Poly1305Nonce> for holochain_types::prelude::warrant::SerializedBytes

source§

impl TryFrom<BoolWrap> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<Bytes> for Pages

§

type Error = PageCountOutOfRange

§

impl TryFrom<Bytes> for ReasonPhrase

§

type Error = InvalidReasonPhrase

§

impl TryFrom<ChildStderr> for OwnedFd

Note: This implementation is only available on Rust 1.63+.

§

type Error = Error

§

impl TryFrom<ChildStdin> for OwnedFd

Note: This implementation is only available on Rust 1.63+.

§

type Error = Error

§

impl TryFrom<ChildStdout> for OwnedFd

Note: This implementation is only available on Rust 1.63+.

§

type Error = Error

§

impl TryFrom<Duration> for core::time::Duration

§

type Error = ConversionRange

§

impl TryFrom<Error> for ComponentRange

§

type Error = DifferentVariant

§

impl TryFrom<Error> for ConversionRange

§

type Error = DifferentVariant

§

impl TryFrom<Error> for DifferentVariant

§

type Error = DifferentVariant

§

impl TryFrom<Error> for InvalidVariant

§

type Error = DifferentVariant

§

impl TryFrom<LairApiEnum> for LairApiReqCryptoBoxXSalsaByPubKey

§

impl TryFrom<LairApiEnum> for LairApiReqCryptoBoxXSalsaOpenByPubKey

§

impl TryFrom<LairApiEnum> for LairApiReqExportSeedByTag

§

impl TryFrom<LairApiEnum> for LairApiReqGetEntry

§

impl TryFrom<LairApiEnum> for LairApiReqGetWkaTlsCertPrivKey

§

impl TryFrom<LairApiEnum> for LairApiReqHello

§

impl TryFrom<LairApiEnum> for LairApiReqImportSeed

§

impl TryFrom<LairApiEnum> for LairApiReqListEntries

§

impl TryFrom<LairApiEnum> for LairApiReqNewSeed

§

impl TryFrom<LairApiEnum> for LairApiReqNewWkaTlsCert

§

impl TryFrom<LairApiEnum> for LairApiReqSecretBoxXSalsaByTag

§

impl TryFrom<LairApiEnum> for LairApiReqSecretBoxXSalsaOpenByTag

§

impl TryFrom<LairApiEnum> for LairApiReqSignByPubKey

§

impl TryFrom<LairApiEnum> for LairApiReqUnlock

§

impl TryFrom<LairApiEnum> for LairApiResCryptoBoxXSalsaByPubKey

§

impl TryFrom<LairApiEnum> for LairApiResCryptoBoxXSalsaOpenByPubKey

§

impl TryFrom<LairApiEnum> for LairApiResError

§

impl TryFrom<LairApiEnum> for LairApiResExportSeedByTag

§

impl TryFrom<LairApiEnum> for LairApiResGetEntry

§

impl TryFrom<LairApiEnum> for LairApiResGetWkaTlsCertPrivKey

§

impl TryFrom<LairApiEnum> for LairApiResHello

§

impl TryFrom<LairApiEnum> for LairApiResImportSeed

§

impl TryFrom<LairApiEnum> for LairApiResListEntries

§

impl TryFrom<LairApiEnum> for LairApiResNewSeed

§

impl TryFrom<LairApiEnum> for LairApiResNewWkaTlsCert

§

impl TryFrom<LairApiEnum> for LairApiResSecretBoxXSalsaByTag

§

impl TryFrom<LairApiEnum> for LairApiResSecretBoxXSalsaOpenByTag

§

impl TryFrom<LairApiEnum> for LairApiResSignByPubKey

§

impl TryFrom<LairApiEnum> for LairApiResUnlock

§

impl TryFrom<PlainMessage> for Message

Parses a plaintext message into a well-typed [Message].

A [PlainMessage] must contain plaintext content. Encrypted content should be stored in an [OpaqueMessage] and decrypted before being stored into a [PlainMessage].

§

type Error = Error

source§

impl TryFrom<StringWrap> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<TcpListener> for std::net::tcp::TcpListener

§

type Error = Error

§

impl TryFrom<TcpStream> for std::net::tcp::TcpStream

§

type Error = Error

source§

impl TryFrom<U32Wrap> for holochain_types::prelude::warrant::SerializedBytes

§

impl TryFrom<UdpSocket> for std::net::udp::UdpSocket

§

type Error = Error

§

impl TryFrom<UnixDatagram> for std::os::unix::net::datagram::UnixDatagram

§

type Error = Error

§

impl TryFrom<UnixListener> for std::os::unix::net::listener::UnixListener

§

type Error = Error

§

impl TryFrom<UnixStream> for std::os::unix::net::stream::UnixStream

§

type Error = Error

§

impl TryFrom<Value> for bool

§

type Error = Value

§

impl TryFrom<Value> for f32

§

type Error = Value

§

impl TryFrom<Value> for f64

§

type Error = Value

§

impl TryFrom<Value> for i64

§

type Error = Value

§

impl TryFrom<Value> for u64

§

type Error = Value

§

impl TryFrom<Value> for String

§

type Error = Value

§

impl TryFrom<Value> for Vec<(Value, Value), Global>

§

type Error = Value

§

impl TryFrom<Value> for Vec<u8, Global>

§

type Error = Value

§

impl TryFrom<Value> for Vec<Value, Global>

§

type Error = Value

§

impl TryFrom<Value> for Utf8String

§

type Error = Value

source§

impl TryFrom<WireContext> for holochain_serialized_bytes::SerializedBytes

source§

impl TryFrom<WireLink> for holochain_serialized_bytes::SerializedBytes

source§

impl TryFrom<WireLinks> for holochain_serialized_bytes::SerializedBytes

source§

impl TryFrom<WireSpanContext> for holochain_serialized_bytes::SerializedBytes

§

impl<'a> TryFrom<&'a Action> for &'a CreateLink<RateWeight>

§

impl<'a> TryFrom<&'a Action> for &'a Delete<RateWeight>

§

impl<'a> TryFrom<&'a Action> for &'a Update<EntryRateWeight>

source§

impl<'a> TryFrom<&'a Action> for NewEntryActionRef<'a>

source§

impl<'a> TryFrom<&'a str> for HeaderName

source§

impl<'a> TryFrom<&'a str> for HeaderValue

source§

impl<'a> TryFrom<&'a str> for Method

source§

impl<'a> TryFrom<&'a str> for StatusCode

source§

impl<'a> TryFrom<&'a str> for Authority

source§

impl<'a> TryFrom<&'a str> for PathAndQuery

source§

impl<'a> TryFrom<&'a str> for Scheme

source§

impl<'a> TryFrom<&'a str> for Uri

source§

impl<'a> TryFrom<&'a str> for Url

source§

impl<'a> TryFrom<&'a String> for HeaderName

source§

impl<'a> TryFrom<&'a String> for HeaderValue

source§

impl<'a> TryFrom<&'a String> for Uri

source§

impl<'a> TryFrom<&'a SerializedBytes> for holochain_serialized_bytes::SerializedBytes

source§

impl<'a> TryFrom<&'a Uri> for Uri

§

type Error = Error

source§

impl<'a> TryFrom<&'a Row<'a>> for ()

§

type Error = Error

source§

impl<'a> TryFrom<&'a SerializedBytes> for holochain_types::prelude::warrant::SerializedBytes

source§

impl<'a> TryFrom<&'a [u8]> for EndEntityCert<'a>

§

type Error = Error

source§

impl<'a> TryFrom<&'a [u8]> for HeaderName

source§

impl<'a> TryFrom<&'a [u8]> for HeaderValue

source§

impl<'a> TryFrom<&'a [u8]> for Method

source§

impl<'a> TryFrom<&'a [u8]> for StatusCode

source§

impl<'a> TryFrom<&'a [u8]> for Authority

source§

impl<'a> TryFrom<&'a [u8]> for PathAndQuery

source§

impl<'a> TryFrom<&'a [u8]> for Scheme

source§

impl<'a> TryFrom<&'a [u8]> for Uri

source§

impl<'a> TryFrom<&UniqueForm<'a>> for holochain_types::prelude::warrant::SerializedBytes

source§

impl<'a> TryFrom<Vec<u8, Global>> for PathAndQuery

source§

impl<'a> TryFrom<Vec<u8, Global>> for Uri

§

impl<'a> TryFrom<ValueRef<'a>> for &'a [u8]

§

type Error = ValueRef<'a>

§

impl<'a> TryFrom<ValueRef<'a>> for bool

§

type Error = ValueRef<'a>

§

impl<'a> TryFrom<ValueRef<'a>> for f32

§

type Error = ValueRef<'a>

§

impl<'a> TryFrom<ValueRef<'a>> for u64

§

type Error = ValueRef<'a>

§

impl<'a> TryFrom<ValueRef<'a>> for Vec<(ValueRef<'a>, ValueRef<'a>), Global>

§

type Error = ValueRef<'a>

§

impl<'a> TryFrom<ValueRef<'a>> for Vec<ValueRef<'a>, Global>

§

type Error = ValueRef<'a>

§

impl<'a> TryFrom<ValueRef<'a>> for Utf8StringRef<'a>

§

type Error = ValueRef<'a>

source§

impl<'a, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> TryFrom<&'a Row<'a>> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)where A: FromSql, B: FromSql, C: FromSql, D: FromSql, E: FromSql, F: FromSql, G: FromSql, H: FromSql, I: FromSql, J: FromSql, K: FromSql, L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> TryFrom<&'a Row<'a>> for (B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)where B: FromSql, C: FromSql, D: FromSql, E: FromSql, F: FromSql, G: FromSql, H: FromSql, I: FromSql, J: FromSql, K: FromSql, L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, C, D, E, F, G, H, I, J, K, L, M, N, O, P> TryFrom<&'a Row<'a>> for (C, D, E, F, G, H, I, J, K, L, M, N, O, P)where C: FromSql, D: FromSql, E: FromSql, F: FromSql, G: FromSql, H: FromSql, I: FromSql, J: FromSql, K: FromSql, L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, D, E, F, G, H, I, J, K, L, M, N, O, P> TryFrom<&'a Row<'a>> for (D, E, F, G, H, I, J, K, L, M, N, O, P)where D: FromSql, E: FromSql, F: FromSql, G: FromSql, H: FromSql, I: FromSql, J: FromSql, K: FromSql, L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, E, F, G, H, I, J, K, L, M, N, O, P> TryFrom<&'a Row<'a>> for (E, F, G, H, I, J, K, L, M, N, O, P)where E: FromSql, F: FromSql, G: FromSql, H: FromSql, I: FromSql, J: FromSql, K: FromSql, L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, F, G, H, I, J, K, L, M, N, O, P> TryFrom<&'a Row<'a>> for (F, G, H, I, J, K, L, M, N, O, P)where F: FromSql, G: FromSql, H: FromSql, I: FromSql, J: FromSql, K: FromSql, L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, G, H, I, J, K, L, M, N, O, P> TryFrom<&'a Row<'a>> for (G, H, I, J, K, L, M, N, O, P)where G: FromSql, H: FromSql, I: FromSql, J: FromSql, K: FromSql, L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, H, I, J, K, L, M, N, O, P> TryFrom<&'a Row<'a>> for (H, I, J, K, L, M, N, O, P)where H: FromSql, I: FromSql, J: FromSql, K: FromSql, L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, I, J, K, L, M, N, O, P> TryFrom<&'a Row<'a>> for (I, J, K, L, M, N, O, P)where I: FromSql, J: FromSql, K: FromSql, L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, J, K, L, M, N, O, P> TryFrom<&'a Row<'a>> for (J, K, L, M, N, O, P)where J: FromSql, K: FromSql, L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, K, L, M, N, O, P> TryFrom<&'a Row<'a>> for (K, L, M, N, O, P)where K: FromSql, L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, K, V, T> TryFrom<&'a HashMap<K, V, RandomState>> for HeaderMap<T>where K: Eq + Hash, HeaderName: TryFrom<&'a K>, <HeaderName as TryFrom<&'a K>>::Error: Into<Error>, T: TryFrom<&'a V>, <T as TryFrom<&'a V>>::Error: Into<Error>,

Try to convert a HashMap into a HeaderMap.

Examples

use std::collections::HashMap;
use std::convert::TryInto;
use http::HeaderMap;

let mut map = HashMap::new();
map.insert("X-Custom-Header".to_string(), "my value".to_string());

let headers: HeaderMap = (&map).try_into().expect("valid headers");
assert_eq!(headers["X-Custom-Header"], "my value");
§

type Error = Error

source§

impl<'a, L, M, N, O, P> TryFrom<&'a Row<'a>> for (L, M, N, O, P)where L: FromSql, M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, M, N, O, P> TryFrom<&'a Row<'a>> for (M, N, O, P)where M: FromSql, N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, N, O, P> TryFrom<&'a Row<'a>> for (N, O, P)where N: FromSql, O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, O, P> TryFrom<&'a Row<'a>> for (O, P)where O: FromSql, P: FromSql,

§

type Error = Error

source§

impl<'a, P> TryFrom<&'a Row<'a>> for (P,)where P: FromSql,

§

type Error = Error

source§

impl<'a, T, const N: usize> TryFrom<&'a [T]> for &'a [T; N]

Tries to create an array ref &[T; N] from a slice ref &[T]. Succeeds if slice.len() == N.

let bytes: [u8; 3] = [1, 0, 2];

let bytes_head: &[u8; 2] = <&[u8; 2]>::try_from(&bytes[0..2]).unwrap();
assert_eq!(1, u16::from_le_bytes(*bytes_head));

let bytes_tail: &[u8; 2] = bytes[1..3].try_into().unwrap();
assert_eq!(512, u16::from_le_bytes(*bytes_tail));
source§

impl<'a, T, const N: usize> TryFrom<&'a mut [T]> for &'a mut [T; N]

Tries to create a mutable array ref &mut [T; N] from a mutable slice ref &mut [T]. Succeeds if slice.len() == N.

let mut bytes: [u8; 3] = [1, 0, 2];

let bytes_head: &mut [u8; 2] = <&mut [u8; 2]>::try_from(&mut bytes[0..2]).unwrap();
assert_eq!(1, u16::from_le_bytes(*bytes_head));

let bytes_tail: &mut [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();
assert_eq!(512, u16::from_le_bytes(*bytes_tail));
source§

impl<'a, const CAP: usize> TryFrom<&'a str> for ArrayString<CAP>

source§

impl<'a, const CAP: usize> TryFrom<Arguments<'a>> for ArrayString<CAP>

source§

impl<A> TryFrom<&[<A as Array>::Item]> for arrayvec::ArrayVec<A>where A: Array, <A as Array>::Item: Clone,

Try to create an ArrayVec from a slice. This will return an error if the slice was too big to fit.

use arrayvec::ArrayVec;
use std::convert::TryInto as _;

let array: ArrayVec<[_; 4]> = (&[1, 2, 3] as &[_]).try_into().unwrap();
assert_eq!(array.len(), 3);
assert_eq!(array.capacity(), 4);
source§

impl<H, W, E> TryFrom<(H, ValidationStatus)> for WireActionStatus<W>where E: Into<ActionError>, H: TryInto<W, Error = E>,

source§

impl<P> TryFrom<&str> for HoloHash<P>where P: PrimitiveHashType,

source§

impl<P> TryFrom<&String> for HoloHash<P>where P: PrimitiveHashType,

source§

impl<P> TryFrom<String> for HoloHash<P>where P: PrimitiveHashType,

source§

impl<T> TryFrom<&HoloHash<T>> for holochain_types::prelude::warrant::SerializedByteswhere T: HashType,

source§

impl<T> TryFrom<HoloHash<T>> for holochain_types::prelude::warrant::SerializedByteswhere T: HashType,

§

impl<T> TryFrom<OwnedFd> for Async<T>where T: AsRawFd + From<OwnedFd>,

§

type Error = Error

source§

impl<T> TryFrom<Request<T>> for reqwest::async_impl::request::Requestwhere T: Into<Body>,

§

type Error = Error

source§

impl<T> TryFrom<Dh<T>> for PKey<T>

source§

impl<T> TryFrom<Dsa<T>> for PKey<T>

source§

impl<T> TryFrom<EcKey<T>> for PKey<T>

source§

impl<T> TryFrom<PKey<T>> for Dh<T>

source§

impl<T> TryFrom<PKey<T>> for Dsa<T>

source§

impl<T> TryFrom<PKey<T>> for EcKey<T>

source§

impl<T> TryFrom<PKey<T>> for Rsa<T>

source§

impl<T> TryFrom<Rsa<T>> for PKey<T>

source§

impl<T> TryFrom<SerializedBytes> for HoloHash<T>where T: HashType,

§

impl<T> TryFrom<Async<T>> for OwnedFdwhere T: Into<OwnedFd>,

§

type Error = Error

§

impl<T> TryFrom<Value<T>> for f32where T: WasmValueType,

§

type Error = &'static str

§

impl<T> TryFrom<Value<T>> for f64where T: WasmValueType,

§

type Error = &'static str

§

impl<T> TryFrom<Value<T>> for i32where T: WasmValueType,

§

type Error = &'static str

§

impl<T> TryFrom<Value<T>> for i64where T: WasmValueType,

§

type Error = &'static str

§

impl<T> TryFrom<Value<T>> for u32where T: WasmValueType,

§

type Error = &'static str

§

impl<T> TryFrom<Value<T>> for u64where T: WasmValueType,

§

type Error = &'static str

§

impl<T, A> TryFrom<&[T]> for ArrayVec<A>where T: Clone + Default, A: Array<Item = T>,

§

type Error = TryFromSliceError

1.48.0 · source§

impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]where A: Allocator,

§

type Error = Vec<T, A>

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

source§

impl<T, const CAP: usize> TryFrom<&[T]> for arrayvec::arrayvec::ArrayVec<T, CAP>where T: Clone,

Try to create an ArrayVec from a slice. This will return an error if the slice was too big to fit.

use arrayvec::ArrayVec;
use std::convert::TryInto as _;

let array: ArrayVec<_, 4> = (&[1, 2, 3] as &[_]).try_into().unwrap();
assert_eq!(array.len(), 3);
assert_eq!(array.capacity(), 4);
source§

impl<T, const N: usize> TryFrom<&[T]> for [T; N]where T: Copy,

Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if slice.len() == N.

let bytes: [u8; 3] = [1, 0, 2];

let bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();
assert_eq!(1, u16::from_le_bytes(bytes_head));

let bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();
assert_eq!(512, u16::from_le_bytes(bytes_tail));
1.59.0 · source§

impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]where T: Copy,

Tries to create an array [T; N] by copying from a mutable slice &mut [T]. Succeeds if slice.len() == N.

let mut bytes: [u8; 3] = [1, 0, 2];

let bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();
assert_eq!(1, u16::from_le_bytes(bytes_head));

let bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();
assert_eq!(512, u16::from_le_bytes(bytes_tail));
1.43.0 · source§

impl<T, const N: usize> TryFrom<Box<[T], Global>> for Box<[T; N], Global>

1.43.0 · source§

impl<T, const N: usize> TryFrom<Rc<[T]>> for Rc<[T; N]>

§

type Error = Rc<[T]>

1.43.0 · source§

impl<T, const N: usize> TryFrom<Arc<[T]>> for Arc<[T; N]>

§

type Error = Arc<[T]>

1.66.0 · source§

impl<T, const N: usize> TryFrom<Vec<T, Global>> for Box<[T; N], Global>

§

type Error = Vec<T, Global>