Trait domain::rdata::svcb::ParseSvcParamValue
source · 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§
sourcefn parse_value(
key: SvcParamKey,
parser: &mut Parser<'a, Octs>,
) -> Result<Option<Self>, ParseError>
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.
Object Safety§
This trait is not object safe.