Struct ydb::TopicWriter
source · pub struct TopicWriter { /* private fields */ }Expand description
TopicWriter at initial state of implementation it really doesn’t ready for use. For example It isn’t handle lost connection to the server and have some unimplemented method.
Implementations§
source§impl TopicWriter
impl TopicWriter
pub async fn stop(self) -> YdbResult<()>
pub async fn write(&mut self, message: TopicWriterMessage) -> YdbResult<()>
pub async fn write_with_ack( &mut self, message: TopicWriterMessage ) -> YdbResult<MessageWriteStatus>
pub async fn write_with_ack_future( &mut self, _message: TopicWriterMessage ) -> YdbResult<AckFuture>
pub async fn flush(&self) -> YdbResult<()>
Auto Trait Implementations§
impl !RefUnwindSafe for TopicWriter
impl Send for TopicWriter
impl Sync for TopicWriter
impl Unpin for TopicWriter
impl !UnwindSafe for TopicWriter
Blanket Implementations§
§impl<T> Any for T
impl<T> Any for T
§fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove
Any::type_id_compat and use StdAny::type_id instead.
https://github.com/rust-lang/rust/issues/27745
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request