pub struct SoftBindingResolverSession<'a> { /* private fields */ }Expand description
Transport-independent Soft Binding Resolution API state machine.
A transport MUST issue the exact method, URL, headers, and body returned by
next_request, refuse redirects, omit ambient credentials, enforce its own
egress policy, and pass the response’s final URL to accept_response.
Implementations§
Source§impl<'a> SoftBindingResolverSession<'a>
impl<'a> SoftBindingResolverSession<'a>
pub fn new( asset: &'a [u8], mime_type: &'a str, service_root: &str, query: &'a SoftBindingQuery, verify_options: &'a VerifyOptions, options: &'a SoftBindingResolverOptions, ) -> Result<Self, Error>
pub fn next_request(&self) -> Option<SoftBindingFetchRequest<'_>>
pub fn accept_response( &mut self, final_url: &str, bytes: Vec<u8>, ) -> Result<(), Error>
pub fn finish(self) -> Result<SoftBindingResolution, Error>
Auto Trait Implementations§
impl<'a> Freeze for SoftBindingResolverSession<'a>
impl<'a> RefUnwindSafe for SoftBindingResolverSession<'a>
impl<'a> Send for SoftBindingResolverSession<'a>
impl<'a> Sync for SoftBindingResolverSession<'a>
impl<'a> Unpin for SoftBindingResolverSession<'a>
impl<'a> UnsafeUnpin for SoftBindingResolverSession<'a>
impl<'a> UnwindSafe for SoftBindingResolverSession<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more