[][src]Struct romp::session::subscription::Subscription

pub struct Subscription { /* fields omitted */ }

Subscription to a destination, these are stored on the Destination & the session and hold references to the session, so messages can be queued

Methods

impl Subscription[src]

pub fn new(
    session: Arc<RwLock<StompSession>>,
    destination: Arc<RwLock<Destination>>,
    id: u64,
    ack: Ack,
    filter: Option<Filter>,
    filter_self: bool
) -> Subscription
[src]

pub fn hash_id(&self) -> &String[src]

pub fn user_id(&self) -> String[src]

pub fn subscription_id(&self) -> u64[src]

pub fn as_string(&self) -> String[src]

Trait Implementations

impl Drop for Subscription[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any