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

pub struct ClientSession(Arc<Session>);

The client side of a Session.

Implementations

impl ClientSession[src]

pub fn send_request(
    &self,
    buf: UserSpacePtrMut<[u8]>
) -> Result<(), UserspaceError>
[src]

Send an IPC request through the client pipe. Takes a userspace buffer containing the packed IPC request. When returning, the buffer will contain the IPC answer (unless an error occured).

This function is blocking - it will wait until the server receives and replies to the request before returning.

Note that the buffer needs to live until send_request returns, which may take an arbitrary long time. We do not eagerly read the buffer - it will be read from when the server asks to receive a request.

Trait Implementations

impl Clone for ClientSession[src]

impl Debug for ClientSession[src]

Auto Trait Implementations

impl !RefUnwindSafe for ClientSession

impl Send for ClientSession

impl Sync for ClientSession

impl Unpin for ClientSession

impl !UnwindSafe for ClientSession

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.