pub struct ComputerEndpoint {
pub https: bool,
pub host: String,
pub port: u16,
pub loopback: bool,
}Expand description
Where a validated [computer].url connects.
Fields§
§https: booltrue for https, false for plain http (loopback only).
host: StringThe host as written, without the brackets of an IPv6 literal.
port: u16The explicit port, or the scheme’s default.
loopback: boolWhether the host is localhost, in 127.0.0.0/8, or ::1.
Trait Implementations§
Source§impl Clone for ComputerEndpoint
impl Clone for ComputerEndpoint
Source§impl Debug for ComputerEndpoint
impl Debug for ComputerEndpoint
impl Eq for ComputerEndpoint
Source§impl PartialEq for ComputerEndpoint
impl PartialEq for ComputerEndpoint
impl StructuralPartialEq for ComputerEndpoint
Auto Trait Implementations§
impl Forget for ComputerEndpoint
impl Freeze for ComputerEndpoint
impl Move for ComputerEndpoint
impl RefUnwindSafe for ComputerEndpoint
impl Send for ComputerEndpoint
impl Sync for ComputerEndpoint
impl Unpin for ComputerEndpoint
impl UnsafeUnpin for ComputerEndpoint
impl UnwindSafe for ComputerEndpoint
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more