[−][src]Struct sunrise_kernel::ipc::port::Port
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
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]
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>,