Struct reachability_core::FetchParameters
source · pub struct FetchParameters {
pub interface_name: String,
pub domain: String,
pub ip: IpAddr,
pub path: String,
pub expected_statuses: Vec<u8>,
}
Fields§
§interface_name: String
The name of the interface sending the ping.
domain: String
The http domain, sent with the Host header to the server.
ip: IpAddr
The DNS Resolved IP address for the fetch server.
path: String
Path to send request to.
expected_statuses: Vec<u8>
The expected HTTP status codes.
Trait Implementations§
source§impl Clone for FetchParameters
impl Clone for FetchParameters
source§fn clone(&self) -> FetchParameters
fn clone(&self) -> FetchParameters
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 moreAuto Trait Implementations§
impl Freeze for FetchParameters
impl RefUnwindSafe for FetchParameters
impl Send for FetchParameters
impl Sync for FetchParameters
impl Unpin for FetchParameters
impl UnwindSafe for FetchParameters
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
§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoAny for T
impl<T> IntoAny for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.