pub struct Tx5Url(/* private fields */);Expand description
Tx5 url.
Implementations§
Source§impl Tx5Url
impl Tx5Url
Sourcepub fn is_server(&self) -> bool
pub fn is_server(&self) -> bool
If this url does not contain the /tx5-ws/[pubkey] path,
then it references a signal server directly, and this function
will return true. Otherwise, it is a client url.
Sourcepub fn is_client(&self) -> bool
pub fn is_client(&self) -> bool
If this url contains the /tx5-ws/[pubkey] path,
then it is a client url, otherwise, it is a signal
server url.
Sourcepub fn to_server(&self) -> Tx5Url
pub fn to_server(&self) -> Tx5Url
If this is a client url, convert it into a server (signal) url, by dropping the path components.
Trait Implementations§
Source§impl Ord for Tx5Url
impl Ord for Tx5Url
Source§impl PartialOrd for Tx5Url
impl PartialOrd for Tx5Url
impl Eq for Tx5Url
impl StructuralPartialEq for Tx5Url
Auto Trait Implementations§
impl Freeze for Tx5Url
impl RefUnwindSafe for Tx5Url
impl Send for Tx5Url
impl Sync for Tx5Url
impl Unpin for Tx5Url
impl UnwindSafe for Tx5Url
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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.