Struct kitsune_p2p_types::tx2::FramedWriter [−][src]
pub struct FramedWriter(_);
Expand description
Efficiently write framed data to a sub AsyncWrite instance.
Implementations
Trait Implementations
fn write(
&mut self,
msg_id: MsgId,
data: PoolBuf,
timeout: KitsuneTimeout
) -> BoxFuture<'_, KitsuneResult<()>>
fn write(
&mut self,
msg_id: MsgId,
data: PoolBuf,
timeout: KitsuneTimeout
) -> BoxFuture<'_, KitsuneResult<()>>
Write a frame of data to this FramedWriter instance. If timeout is exceeded, a timeout error is returned, and the stream is closed.
Auto Trait Implementations
impl !RefUnwindSafe for FramedWriter
impl Send for FramedWriter
impl !Sync for FramedWriter
impl Unpin for FramedWriter
impl !UnwindSafe for FramedWriter
Blanket Implementations
Mutably borrows from an owned value. Read more
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