pub trait FromWire: Sized {
// Required method
fn read_wire(reader: &mut WireReader, index: i32) -> Result<Self, WireError>;
// Provided method
fn read_result_payload(
reader: &mut WireReader,
index: Option<i32>,
) -> Result<Self, WireError> { ... }
}Expand description
Decode a concrete value, consuming every visited wire node exactly once.
Required Methods§
Provided Methods§
fn read_result_payload( reader: &mut WireReader, index: Option<i32>, ) -> Result<Self, WireError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<A, B, C, D, E, F, G, H> FromWire for (A, B, C, D, E, F, G, H)
impl<A, B, C, D, E, F, G, H> FromWire for (A, B, C, D, E, F, G, H)
fn read_wire( reader: &mut WireReader, index: i32, ) -> Result<(A, B, C, D, E, F, G, H), WireError>
Source§impl<A, B, C, D, E, F, G> FromWire for (A, B, C, D, E, F, G)
impl<A, B, C, D, E, F, G> FromWire for (A, B, C, D, E, F, G)
fn read_wire( reader: &mut WireReader, index: i32, ) -> Result<(A, B, C, D, E, F, G), WireError>
Source§impl<A, B, C, D, E, F> FromWire for (A, B, C, D, E, F)
impl<A, B, C, D, E, F> FromWire for (A, B, C, D, E, F)
fn read_wire( reader: &mut WireReader, index: i32, ) -> Result<(A, B, C, D, E, F), WireError>
Source§impl<A, B, C, D, E> FromWire for (A, B, C, D, E)
impl<A, B, C, D, E> FromWire for (A, B, C, D, E)
fn read_wire( reader: &mut WireReader, index: i32, ) -> Result<(A, B, C, D, E), WireError>
Source§impl<A, B, C, D> FromWire for (A, B, C, D)
impl<A, B, C, D> FromWire for (A, B, C, D)
fn read_wire( reader: &mut WireReader, index: i32, ) -> Result<(A, B, C, D), WireError>
Implementors§
impl FromWire for AccountId
impl FromWire for AgentAllFilter
impl FromWire for AgentAnyFilter
impl FromWire for AgentConfigVarsFilter
impl FromWire for AgentCreatedAtFilter
impl FromWire for AgentEnvFilter
impl FromWire for AgentId
impl FromWire for AgentMetadata
impl FromWire for AgentNameFilter
impl FromWire for AgentPropertyFilter
impl FromWire for AgentStatus
impl FromWire for AgentStatusFilter
impl FromWire for AgentVersionFilter
impl FromWire for CardId
impl FromWire for CardView
impl FromWire for ComponentId
impl FromWire for EnvironmentId
impl FromWire for FilterComparator
impl FromWire for ForkDetails
impl FromWire for ForkResult
impl FromWire for GuestPermissionCardHandle
impl FromWire for GuestQuotaTokenHandle
impl FromWire for GuestSecretHandle
impl FromWire for KernelModule
impl FromWire for PatternGrant
impl FromWire for PermissionCard
impl FromWire for PermissionError
impl FromWire for PolymorphicPermissionCard
impl FromWire for ProcessExitStatus
impl FromWire for PromiseId
impl FromWire for QuotaToken
impl FromWire for SchemaFingerprintV1
Available on crate feature
guest only.