pub struct Session { /* private fields */ }Implementations§
source§impl Session
impl Session
pub fn publish(&self, message: OutboundMessage) -> Result<(), SessionError>
pub fn subscribe<T>(&self, topic: T) -> Result<(), SessionError>where T: Into<Vec<u8>>,
pub fn unsubscribe<T>(&self, topic: T) -> Result<(), SessionError>where T: Into<Vec<u8>>,
pub fn cache_session<N>( self, cache_name: N, max_message: Option<u64>, max_age: Option<u64>, timeout_ms: Option<u64> ) -> Result<CacheSession, SessionError>where N: Into<Vec<u8>>,
Trait Implementations§
Auto Trait Implementations§
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