pub trait Header {
type Error: Error + 'static;
// Required method
fn try_header(
&self,
id: impl AsRef<oid>,
) -> Result<Option<Header>, Self::Error>;
}
Expand description
A way to obtain object properties without fully decoding it.
Required Associated Types§
Sourcetype Error: Error + 'static
type Error: Error + 'static
The error returned by try_header()
.
Required Methods§
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.