[−][src]Struct sunrise_kernel::ipc::session::Session
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,