Struct kitsune_p2p_types::tx2::tx2_api::Tx2ConHnd [−][src]
Expand description
A connection handle - use this to manage an open connection.
Implementations
Get the remote address of this connection.
Close this connection.
pub fn notify(
&self,
data: &C,
timeout: KitsuneTimeout
) -> impl Future<Output = KitsuneResult<()>> + 'static + Send
pub fn notify(
&self,
data: &C,
timeout: KitsuneTimeout
) -> impl Future<Output = KitsuneResult<()>> + 'static + Send
Write a notify to this connection.
pub fn request(
&self,
data: &C,
timeout: KitsuneTimeout
) -> impl Future<Output = KitsuneResult<C>> + 'static + Send
pub fn request(
&self,
data: &C,
timeout: KitsuneTimeout
) -> impl Future<Output = KitsuneResult<C>> + 'static + Send
Write a request to this connection.
Trait Implementations
Auto Trait Implementations
impl<C> !RefUnwindSafe for Tx2ConHnd<C>
impl<C> !UnwindSafe for Tx2ConHnd<C>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more