pub struct Ep { /* private fields */ }Expand description
A tx5 endpoint representing an instance that can send and receive.
Implementations§
source§impl Ep
impl Ep
sourcepub async fn with_config<I: IntoConfig>(
into_config: I
) -> Result<(Self, ManyRcv<EpEvt>)>
pub async fn with_config<I: IntoConfig>( into_config: I ) -> Result<(Self, ManyRcv<EpEvt>)>
Construct a new tx5 endpoint with configuration.
sourcepub fn listen(
&self,
sig_url: Tx5Url
) -> impl Future<Output = Result<Tx5Url>> + 'static + Send
pub fn listen( &self, sig_url: Tx5Url ) -> impl Future<Output = Result<Tx5Url>> + 'static + Send
Establish a listening connection to a signal server, from which we can accept incoming remote connections. Returns the client url at which this endpoint may now be addressed.
sourcepub fn send<B: Buf>(
&self,
rem_cli_url: Tx5Url,
data: B
) -> impl Future<Output = Result<()>> + 'static + Send
pub fn send<B: Buf>( &self, rem_cli_url: Tx5Url, data: B ) -> impl Future<Output = Result<()>> + 'static + Send
Send data to a remote on this tx5 endpoint.
Trait Implementations§
impl Eq for Ep
impl StructuralEq for Ep
impl StructuralPartialEq for Ep
Auto Trait Implementations§
impl !RefUnwindSafe for Ep
impl Send for Ep
impl Sync for Ep
impl Unpin for Ep
impl !UnwindSafe for Ep
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.