[][src]Struct post::publisher::Publisher

pub struct Publisher { /* fields omitted */ }

Handles the distribution of messages to Subscribers.

Any time after creation, a publisher can start to send messages using its Sink implementation.

Implementations

impl Publisher[src]

pub async fn from_description(
    desc: PublisherDesc,
    client: Client
) -> Result<Self, Error>
[src]

Create a new Publisher without a description

The Publisher will have been registered with the provided find_service::Client and be ready to start sending messages.

Trait Implementations

impl Drop for Publisher[src]

fn drop(&mut self)[src]

Ensure messages are cleaned up on drop

impl<Buf> Sink<Buf> for Publisher where
    Buf: Buf
[src]

type Error = Error

The type of value produced by the sink when an error occurs.

Auto Trait Implementations

impl !RefUnwindSafe for Publisher

impl !Send for Publisher

impl !Sync for Publisher

impl Unpin for Publisher

impl !UnwindSafe for Publisher

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]