pub trait Bind: Sized {
type Owner: Source;
// Required method
unsafe fn try_bind(
self,
path: Option<Range<usize>>,
path_len: Option<usize>,
pseudo: Option<Range<usize>>,
host: Option<Range<usize>>,
) -> Result<Bound<Self::Owner>, Error>;
}Expand description
Consumes the exact retained request admission and its immutable owner.
Required Associated Types§
Required Methods§
Sourceunsafe fn try_bind(
self,
path: Option<Range<usize>>,
path_len: Option<usize>,
pseudo: Option<Range<usize>>,
host: Option<Range<usize>>,
) -> Result<Bound<Self::Owner>, Error>
unsafe fn try_bind( self, path: Option<Range<usize>>, path_len: Option<usize>, pseudo: Option<Range<usize>>, host: Option<Range<usize>>, ) -> Result<Bound<Self::Owner>, Error>
§Safety
Self must come from the native decoder and a closed policy preserving native value and final section admission; these exact original field ranges must come from its native iteration or private selection populated only by that decoder’s Commit values tagging actual wire names.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".