pub struct Context {
pub session: Arc<RwLock<StompSession>>,
pub attributes: HashMap<&'static str, String>,
pub is_secure: bool,
pub is_web_sockets: bool,
/* private fields */
}
Fields§
§session: Arc<RwLock<StompSession>>
StompSession is valid for the duration of a STOMP TCP connection or WebSocket
attributes: HashMap<&'static str, String>
Request attributes, valid for the life of a single message, to avoid collisions prefix the attributes with the cargo project name e.g. “romp.”
is_secure: bool
§is_web_sockets: bool
flag is true if incoming request has upgraded to WebSockets
Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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