[−][src]Struct zenoh::net::Publisher
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
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]
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,
pub 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> Same<T> for T
type Output = T
Should always be Self
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,