[][src]Struct sunrise_kernel::ipc::session::Session

struct Session {
    internal: SpinLock<SessionRequests>,
    accepters: SpinLock<Vec<Weak<ThreadStruct>>>,
    servercount: AtomicUsize,
}

Shared part of a Session.

Fields

internal: SpinLock<SessionRequests>

Pending requests and currently active request are there.

accepters: SpinLock<Vec<Weak<ThreadStruct>>>

List of threads waiting for a request.

servercount: AtomicUsize

Count of live ServerSessions. Once it drops to 0, all attempts to call ClientSession::send_request will fail with UserspaceError::PortRemoteDead.

Implementations

impl Session[src]

fn client(this: Arc<Self>) -> ClientSession[src]

Returns a ClientPort from this Port.

fn server(this: Arc<Self>) -> ServerSession[src]

Returns a ServerSession from this Port.

Trait Implementations

impl Debug for Session[src]

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.