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