[][src]Struct zenoh::net::Publisher

pub struct Publisher<'a> { /* fields omitted */ }

A publisher.

Publishers are automatically undeclared when dropped.

Implementations

impl<'_> Publisher<'_>[src]

pub async fn undeclare(__arg0: Self) -> ZResult<()>[src]

Undeclare a Publisher previously declared with declare_publisher.

Publishers are automatically undeclared when dropped, but you may want to use this function to handle errors or undeclare the Publisher asynchronously.

Examples

use zenoh::net::*;

let session = open(config::peer()).await.unwrap();
let publisher = session.declare_publisher(&"/resource/name".into()).await.unwrap();
publisher.undeclare().await.unwrap();

Trait Implementations

impl<'_> Debug for Publisher<'_>[src]

impl<'_> Drop for Publisher<'_>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Publisher<'a>

impl<'a> Send for Publisher<'a>

impl<'a> Sync for Publisher<'a>

impl<'a> Unpin for Publisher<'a>

impl<'a> !UnwindSafe for Publisher<'a>

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,