[−][src]Struct sunrise_kernel::ipc::session::ServerSession
The server side of a Session.
Implementations
impl ServerSession
[src]
pub fn receive(
&self,
buf: UserSpacePtrMut<[u8]>,
has_c_descriptors: bool
) -> Result<(), UserspaceError>
[src]
&self,
buf: UserSpacePtrMut<[u8]>,
has_c_descriptors: bool
) -> Result<(), UserspaceError>
Receive an IPC request through the server pipe. Takes a userspace buffer containing an empty IPC message. The request may optionally contain a C descriptor in order to receive X descriptors. The buffer will be filled with an IPC request.
This function does not wait. It assumes an active_request has already been set by a prior call to wait.
pub fn reply(&self, buf: UserSpacePtr<[u8]>) -> Result<(), UserspaceError>
[src]
Replies to the currently active IPC request on the server pipe. Takes a userspace buffer containing the IPC reply. The kernel will copy the reply to the sender's IPC buffer, before waking the sender so it may return to userspace.
Panics
Panics if there is no currently active request on the pipe.
Trait Implementations
impl Clone for ServerSession
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ServerSession
[src]
impl Drop for ServerSession
[src]
impl Waitable for ServerSession
[src]
fn is_signaled(&self) -> bool
[src]
fn register(&self)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ServerSession
impl Send for ServerSession
impl Sync for ServerSession
impl Unpin for ServerSession
impl !UnwindSafe for ServerSession
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,