pub enum LoaderClientRequest {
OnResponse {
response: Response,
responder: LoaderClientOnResponseResponder,
},
}
Expand description
A client interface used with Loader.Start
.
Closing the underlying channel will cancel the associated HTTP transaction.
Variants§
OnResponse
Called by the loader when the loader receives an HTTP response.
If the server has requested a redirect, then redirect
in response
table will describe the target the server requested. To follow the
redirect, reply to this message. To not follow the redirect, close the
underlying channel.
Implementations§
Source§impl LoaderClientRequest
impl LoaderClientRequest
pub fn into_on_response( self, ) -> Option<(Response, LoaderClientOnResponseResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoaderClientRequest
impl !RefUnwindSafe for LoaderClientRequest
impl Send for LoaderClientRequest
impl Sync for LoaderClientRequest
impl Unpin for LoaderClientRequest
impl !UnwindSafe for LoaderClientRequest
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