Trait FromWithPH

Source
pub trait FromWithPH<T, CTP: ConnectionToPlugin>: Sized {
    // Required method
    fn from_with_ph(value: T, ph: &mut PluginHandler<CTP>) -> Self;
}
Expand description

A trait allowing converting an host-implementation type to a T one, possibly with the help of the PluginHandler if some information should not be directly accessible to the plugins.

Required Methods§

Source

fn from_with_ph(value: T, ph: &mut PluginHandler<CTP>) -> Self

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<CTP: ConnectionToPlugin> FromWithPH<SocketAddr, CTP> for PluginVal

Source§

fn from_with_ph(v: SocketAddr, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<Frame, CTP> for PluginVal

Source§

fn from_with_ph(v: Frame, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<KPacketNumberSpace, CTP> for PluginVal

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<PacketType, CTP> for PluginVal

Source§

fn from_with_ph(v: PacketType, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<QVal, CTP> for PluginVal

Source§

fn from_with_ph(v: QVal, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<bool, CTP> for PluginVal

Source§

fn from_with_ph(v: bool, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<f32, CTP> for PluginVal

Source§

fn from_with_ph(v: f32, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<f64, CTP> for PluginVal

Source§

fn from_with_ph(v: f64, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<i32, CTP> for PluginVal

Source§

fn from_with_ph(v: i32, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<i64, CTP> for PluginVal

Source§

fn from_with_ph(v: i64, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<u32, CTP> for PluginVal

Source§

fn from_with_ph(v: u32, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<u64, CTP> for PluginVal

Source§

fn from_with_ph(v: u64, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<usize, CTP> for PluginVal

Source§

fn from_with_ph(v: usize, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<Vec<u8>, CTP> for PluginVal

Source§

fn from_with_ph(value: Vec<u8>, ph: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<Duration, CTP> for PluginVal

Source§

fn from_with_ph(v: Duration, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<Instant, CTP> for PluginVal

Source§

fn from_with_ph(value: Instant, ph: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<Header, CTP> for PluginVal

Source§

fn from_with_ph(v: Header, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<RcvInfo, CTP> for PluginVal

Source§

fn from_with_ph(v: RcvInfo, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<Instant, CTP> for PluginVal

Source§

fn from_with_ph(v: UnixInstant, _: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<BytesMutPtr, CTP> for PluginVal

Source§

fn from_with_ph(value: BytesMutPtr, ph: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<CursorBytesPtr, CTP> for PluginVal

Source§

fn from_with_ph(value: CursorBytesPtr, ph: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<OctetsMutPtr, CTP> for PluginVal

Source§

fn from_with_ph(value: OctetsMutPtr, ph: &mut PluginHandler<CTP>) -> Self

Source§

impl<CTP: ConnectionToPlugin> FromWithPH<OctetsPtr, CTP> for PluginVal

Source§

fn from_with_ph(value: OctetsPtr, ph: &mut PluginHandler<CTP>) -> Self

Implementors§