Skip to main content

FromWireRef

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.

Required Methods§

Source

fn from_wire_ref(wire: &W) -> Self

Converts the given 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§

impl FromWireRef<i8> for i8

Source§

impl FromWireRef<u8> for u8

Source§

impl FromWireRef<()> for ()

Source§

impl FromWireRef<Float32> for f32

Source§

impl FromWireRef<Float64> for f64

Source§

impl FromWireRef<Int16> for i16

Source§

impl FromWireRef<Int32> for i32

Source§

impl FromWireRef<Int64> for i64

Source§

impl FromWireRef<String<'_>> for String

Source§

impl FromWireRef<Uint16> for u16

Source§

impl FromWireRef<Uint32> for u32

Source§

impl FromWireRef<Uint64> for u64

Source§

impl<T, E, WT, WE> FromWireRef<Result<'_, WT, WE>> for Result<T, E>
where T: FromWireRef<WT>, E: FromWireRef<WE>,

Source§

fn from_wire_ref(wire: &Result<'_, WT, WE>) -> Result<T, E>

Source§

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

Source§

fn from_wire_ref(wire: &Vector<'_, W>) -> Vec<T>

Source§

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

Source§

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

Source§

fn from_wire_ref(wire: &W) -> Box<T>

Source§

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

Implementors§

Source§

impl FromWireRef<ObjectType> for ObjectType

Source§

impl FromWireRef<Rights> for Rights

Source§

impl FromWireRef<FrameworkError> for FrameworkError

Source§

impl<P, T, U> FromWireRef<ClientEnd<P, U>> for ClientEnd<P, T>
where T: FromWireRef<U>,

Source§

impl<P, T, U> FromWireRef<ServerEnd<P, U>> for ServerEnd<P, T>
where T: FromWireRef<U>,

Source§

impl<T, WT> FromWireRef<Flexible<'_, WT>> for Flexible<T>
where T: FromWireRef<WT>,

Source§

impl<T, WT, E, WE> FromWireRef<FlexibleResult<'_, WT, WE>> for FlexibleResult<T, E>
where T: FromWireRef<WT>, E: FromWireRef<WE>,