[][src]Struct myxine_core::Session

pub struct Session { /* fields omitted */ }

A collection of Pages, uniquely keyed by a String path, which are periodically pruned by a garbage collector thread to remove inactive and empty pages from the pool.

Implementations

impl Session[src]

pub async fn start(__arg0: Config) -> Session[src]

Create a new session, starting a thread to maintain heartbeats to any Pages created in this session.

pub async fn page<'_, '_>(&'_ self, path: &'_ str) -> Arc<Page>[src]

Retrieve or create a page at this path.

Auto Trait Implementations

impl !RefUnwindSafe for Session

impl Send for Session

impl Sync for Session

impl Unpin for Session

impl !UnwindSafe for Session

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> From<T> for T[src]

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,