Struct msfs::network::NetworkRequest
source · pub struct NetworkRequest(/* private fields */);
Expand description
Network request handle
Implementations§
source§impl NetworkRequest
impl NetworkRequest
sourcepub fn error_code(&self) -> i32
pub fn error_code(&self) -> i32
Get the HTTP status code or negative if the request failed
sourcepub fn state(&self) -> NetworkRequestState
pub fn state(&self) -> NetworkRequestState
Get the current state of the request
sourcepub fn header_section(&self, section: &str) -> Option<String>
pub fn header_section(&self, section: &str) -> Option<String>
Get a specific header section
Trait Implementations§
source§impl Clone for NetworkRequest
impl Clone for NetworkRequest
source§fn clone(&self) -> NetworkRequest
fn clone(&self) -> NetworkRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for NetworkRequest
Auto Trait Implementations§
impl Freeze for NetworkRequest
impl RefUnwindSafe for NetworkRequest
impl Send for NetworkRequest
impl Sync for NetworkRequest
impl Unpin for NetworkRequest
impl UnwindSafe for NetworkRequest
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