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.
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.