pub struct Subscribe<S> { /* private fields */ }
Expand description
Subscribe message
Implementations§
Source§impl<S> Subscribe<S>
impl<S> Subscribe<S>
Sourcepub fn session_mut(&mut self) -> &mut S
pub fn session_mut(&mut self) -> &mut S
returns mutable reference to a connection session
Sourcepub fn iter_mut(&mut self) -> SubscribeIter<'_, S> ⓘ
pub fn iter_mut(&mut self) -> SubscribeIter<'_, S> ⓘ
returns iterator over subscription topics
Sourcepub fn into_result(self) -> SubscribeResult
pub fn into_result(self) -> SubscribeResult
convert subscription to a result
Trait Implementations§
Source§impl<'a, S> IntoIterator for &'a mut Subscribe<S>
impl<'a, S> IntoIterator for &'a mut Subscribe<S>
Source§type Item = Subscription<'a, S>
type Item = Subscription<'a, S>
The type of the elements being iterated over.
Source§type IntoIter = SubscribeIter<'a, S>
type IntoIter = SubscribeIter<'a, S>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl<S> Freeze for Subscribe<S>
impl<S> !RefUnwindSafe for Subscribe<S>
impl<S> !Send for Subscribe<S>
impl<S> !Sync for Subscribe<S>
impl<S> Unpin for Subscribe<S>
impl<S> !UnwindSafe for Subscribe<S>
Blanket Implementations§
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