pub trait ParseSvcParamValue<'a, Octs: ?Sized>: SvcParamValue + Sized {
    // Required method
    fn parse_value(
        key: SvcParamKey,
        parser: &mut Parser<'a, Octs>
    ) -> Result<Option<Self>, ParseError>;
}
Expand description

A service binding parameter value that can be parse from wire format.

Required Methods§

source

fn parse_value( key: SvcParamKey, parser: &mut Parser<'a, Octs> ) -> Result<Option<Self>, ParseError>

Parse a parameter value from wire format.

The method should return Ok(None) if the type cannot parse values with key. It should return an error if parsing fails.

Implementors§

source§

impl<'a, Octs> ParseSvcParamValue<'a, Octs> for AllValues<Octs::Range<'a>>where Octs: Octets + ?Sized,

source§

impl<'a, Octs> ParseSvcParamValue<'a, Octs> for Alpn<Octs::Range<'a>>where Octs: Octets + ?Sized,

source§

impl<'a, Octs> ParseSvcParamValue<'a, Octs> for DohPath<Octs::Range<'a>>where Octs: Octets + ?Sized,

source§

impl<'a, Octs> ParseSvcParamValue<'a, Octs> for Ech<Octs::Range<'a>>where Octs: Octets + ?Sized,

source§

impl<'a, Octs> ParseSvcParamValue<'a, Octs> for Ipv4Hint<Octs::Range<'a>>where Octs: Octets + ?Sized,

source§

impl<'a, Octs> ParseSvcParamValue<'a, Octs> for Ipv6Hint<Octs::Range<'a>>where Octs: Octets + ?Sized,

source§

impl<'a, Octs> ParseSvcParamValue<'a, Octs> for Mandatory<Octs::Range<'a>>where Octs: Octets + ?Sized,

source§

impl<'a, Octs: Octets + ?Sized> ParseSvcParamValue<'a, Octs> for UnknownSvcParam<Octs::Range<'a>>

source§

impl<'a, Octs: Octets + ?Sized> ParseSvcParamValue<'a, Octs> for NoDefaultAlpn

source§

impl<'a, Octs: Octets + ?Sized> ParseSvcParamValue<'a, Octs> for Port