Struct janus_plugin::session::SessionWrapper[][src]

pub struct SessionWrapper<T> {
    pub handle: *mut PluginSession,
    // some fields omitted
}

A wrapper for a Janus session. Contains a pointer to the Janus PluginSession (which is used to identify this session in the Janus FFI) and any Rust state associated with the session.

Fields

Methods

impl<T> SessionWrapper<T>
[src]

Allocates a boxed, reference-counted state wrapper associated with a Janus PluginSession (whose plugin_handle will then point to the contents of the box).

Retrieves and clones the reference-counted state wrapper associated with a Janus PluginSession.

Returns the opaque pointer for this session.

Trait Implementations

impl<T: Debug> Debug for SessionWrapper<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Clone> Clone for SessionWrapper<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Hash for SessionWrapper<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> PartialEq for SessionWrapper<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Eq for SessionWrapper<T>
[src]

impl<T> Deref for SessionWrapper<T>
[src]

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

impl<T: Sync> Sync for SessionWrapper<T>
[src]

impl<T: Send> Send for SessionWrapper<T>
[src]