[−][src]Struct asyncnsq::writer::Writer
Fields
stream: Arc<TcpStream>
address: Address
Methods
impl Writer
[src]
pub async fn reconnect<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn connect<'_>(&'_ mut self) -> Result<()>
[src]
pub async fn publish<'_, '_>(
&'_ self,
topic: &'_ str,
data: impl Serialize
) -> Result<()>
[src]
&'_ self,
topic: &'_ str,
data: impl Serialize
) -> Result<()>
publish data
pub async fn delay_publish<'_, '_>(
&'_ self,
topic: &'_ str,
delay: i32,
data: impl Serialize
) -> Result<()>
[src]
&'_ self,
topic: &'_ str,
delay: i32,
data: impl Serialize
) -> Result<()>
delay publish data
pub async fn multi_publish<'_, '_>(
&'_ self,
topic: &'_ str,
data: Vec<impl Serialize>
) -> Result<()>
[src]
&'_ self,
topic: &'_ str,
data: Vec<impl Serialize>
) -> Result<()>
publish multi data
Auto Trait Implementations
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,