Trait FromWireRef

Source
pub trait FromWireRef<W>: FromWire<W> {
    // Required method
    fn from_wire_ref(wire: &W) -> Self;
}
Expand description

A type which is convertible from a reference to a wire type.

Required Methods§

Source

fn from_wire_ref(wire: &W) -> Self

Converts the given wire reference to this type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromWireRef<bool> for bool

Source§

fn from_wire_ref(wire: &bool) -> Self

Source§

impl FromWireRef<i8> for i8

Source§

fn from_wire_ref(wire: &i8) -> Self

Source§

impl FromWireRef<u8> for u8

Source§

fn from_wire_ref(wire: &u8) -> Self

Source§

impl FromWireRef<()> for ()

Source§

fn from_wire_ref(wire: &()) -> Self

Source§

impl FromWireRef<WireF32> for f32

Source§

fn from_wire_ref(wire: &WireF32) -> Self

Source§

impl FromWireRef<WireF64> for f64

Source§

fn from_wire_ref(wire: &WireF64) -> Self

Source§

impl FromWireRef<WireI16> for i16

Source§

fn from_wire_ref(wire: &WireI16) -> Self

Source§

impl FromWireRef<WireI32> for i32

Source§

fn from_wire_ref(wire: &WireI32) -> Self

Source§

impl FromWireRef<WireI64> for i64

Source§

fn from_wire_ref(wire: &WireI64) -> Self

Source§

impl FromWireRef<WireString<'_>> for String

Source§

fn from_wire_ref(wire: &WireString<'_>) -> Self

Source§

impl FromWireRef<WireU16> for u16

Source§

fn from_wire_ref(wire: &WireU16) -> Self

Source§

impl FromWireRef<WireU32> for u32

Source§

fn from_wire_ref(wire: &WireU32) -> Self

Source§

impl FromWireRef<WireU64> for u64

Source§

fn from_wire_ref(wire: &WireU64) -> Self

Source§

impl<T: Timeline> FromWireRef<WireI64> for Instant<T, NsUnit>

Source§

fn from_wire_ref(wire: &WireI64) -> Self

Source§

impl<T: Timeline> FromWireRef<WireI64> for Instant<T, TicksUnit>

Source§

fn from_wire_ref(wire: &WireI64) -> Self

Source§

impl<T: FromWireOptionRef<W>, W> FromWireRef<W> for Option<T>

Source§

fn from_wire_ref(wire: &W) -> Self

Source§

impl<T: FromWireRef<W>, W> FromWireRef<WireVector<'_, W>> for Vec<T>

Source§

fn from_wire_ref(wire: &WireVector<'_, W>) -> Self

Source§

impl<T: FromWireRef<W>, W> FromWireRef<W> for Box<T>

Source§

fn from_wire_ref(wire: &W) -> Self

Source§

impl<T: FromWireRef<W>, W, const N: usize> FromWireRef<[W; N]> for [T; N]

Source§

fn from_wire_ref(wire: &[W; N]) -> Self

Implementors§