Struct tc_value::LinkHost [−][src]
pub struct LinkHost { /* fields omitted */ }
The host portion of a Link
(e.g. “http://127.0.0.1:8702”)
Implementations
impl LinkHost
[src]
impl LinkHost
[src]pub fn new(
protocol: LinkProtocol,
address: LinkAddress,
port: Option<u16>
) -> Self
[src]
protocol: LinkProtocol,
address: LinkAddress,
port: Option<u16>
) -> Self
pub fn address(&self) -> &LinkAddress
[src]
pub fn authority(&self) -> String
[src]
pub fn port(&self) -> &Option<u16>
[src]
pub fn protocol(&self) -> &LinkProtocol
[src]
Trait Implementations
impl<A: Into<LinkAddress>> From<(LinkProtocol, A, Option<u16>)> for LinkHost
[src]
impl<A: Into<LinkAddress>> From<(LinkProtocol, A, Option<u16>)> for LinkHost
[src]impl StructuralEq for LinkHost
[src]
impl StructuralEq for LinkHost
[src]impl StructuralPartialEq for LinkHost
[src]
impl StructuralPartialEq for LinkHost
[src]Auto Trait Implementations
impl RefUnwindSafe for LinkHost
impl RefUnwindSafe for LinkHost
impl UnwindSafe for LinkHost
impl UnwindSafe for LinkHost
Blanket Implementations
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]pub fn can_cast_from(&F) -> bool
[src]
pub fn opt_cast_from(f: F) -> Option<T>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]pub fn can_cast_into(&self) -> bool
[src]
pub fn opt_cast_into(self) -> Option<T>
[src]
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
[src]
OnErr: FnOnce(&Self) -> Err,