Struct tc_value::link::LinkHost [−][src]
Implementations
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 Clone for LinkHost[src]
impl Debug for LinkHost[src]
impl Display for LinkHost[src]
impl Eq for LinkHost[src]
impl<A: Into<LinkAddress>> From<(A, u16)> for LinkHost[src]
impl<A: Into<LinkAddress>> From<(LinkProtocol, A, Option<u16>)> for LinkHost[src]
impl From<LinkHost> for Link[src]
impl FromStr for LinkHost[src]
type Err = TCError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> TCResult<LinkHost>[src]
impl Hash for LinkHost[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<LinkHost> for LinkHost[src]
impl StructuralEq for LinkHost[src]
impl StructuralPartialEq for LinkHost[src]
impl TryFrom<Link> for LinkHost[src]
Auto Trait Implementations
impl RefUnwindSafe for LinkHost
impl Send for LinkHost
impl Sync for LinkHost
impl Unpin for LinkHost
impl UnwindSafe for LinkHost
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<F, T> CastFrom<F> for T where
T: From<F>, [src]
T: From<F>,
impl<T, F> CastInto<F> for T where
F: CastFrom<T>, [src]
F: CastFrom<T>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<F> Match for F[src]
pub fn matches<T>(&self) -> bool where
T: TryCastFrom<Self>, [src]
T: TryCastFrom<Self>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>, [src]
T: CastFrom<F>,
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]
T: TryCastFrom<F>,
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,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,