[][src]Struct sunrise_kernel::ipc::port::Port

struct Port {
    incoming_connections: SpinLock<Vec<Arc<IncomingConnection>>>,
    accepters: SpinLock<Vec<Weak<ThreadStruct>>>,
    servercount: AtomicUsize,
}

An endpoint which can be connected to.

Fields

incoming_connections: SpinLock<Vec<Arc<IncomingConnection>>>

List of incoming connection requests.

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

List of threads waiting for a connection request.

servercount: AtomicUsize

Number of active ServerPort. When it drops to 0, future connection attempts will faill with UserspaceError::PortRemoteDead.

Implementations

impl Port[src]

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

Returns a ClientPort from this Port.

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

Returns a ServerPort from this Port.

Trait Implementations

impl Debug for Port[src]

Auto Trait Implementations

impl !RefUnwindSafe for Port

impl Send for Port

impl Sync for Port

impl Unpin for Port

impl !UnwindSafe for Port

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.