[−][src]Struct sunrise_libuser::types::ClientSession
The client side of an IPC session.
Usually obtained by connecting to a service through the sm: service manager. However, an anonymous session pair might be created through the create_session syscall, or by calling connect_to_named_port.
Implementations
impl ClientSession
[src]
pub fn send_sync_request_with_user_buffer(
&self,
buf: &mut [u8]
) -> Result<(), Error>
[src]
&self,
buf: &mut [u8]
) -> Result<(), Error>
Send an IPC request to the handle, and wait for a response. The passed buffer should contain the request on input, and will contain the reply on output.
This is a low-level primitives that is usually wrapped by a higher-level library. Look at the ipc module for more information on the IPC message format.
pub fn into_handle(self) -> Handle
[src]
Consumes the session, returning the underlying handle. Note that closing a Handle without sending a close IPC message will leak the object in the sysmodule. You should always reconstruct the ClientSession from the Handle before dropping it.
pub fn try_clone(&self) -> Result<ClientSession, Error>
[src]
Clones the current object, returning a new handle. The returned handle has its own IPC buffer - it may be used concurrently with the original.
Trait Implementations
impl Debug for ClientSession
[src]
impl Drop for ClientSession
[src]
impl From<AhciInterfaceProxy> for ClientSession
[src]
fn from(sess: AhciInterfaceProxy) -> ClientSession
[src]
impl From<ClientSession> for IUserInterfaceProxy
[src]
fn from(sess: ClientSession) -> IUserInterfaceProxy
[src]
impl From<ClientSession> for ViInterfaceProxy
[src]
fn from(sess: ClientSession) -> ViInterfaceProxy
[src]
impl From<ClientSession> for IStorageProxy
[src]
fn from(sess: ClientSession) -> IStorageProxy
[src]
impl From<ClientSession> for IFileSystemProxy
[src]
fn from(sess: ClientSession) -> IFileSystemProxy
[src]
impl From<ClientSession> for IFileSystemServiceProxy
[src]
fn from(sess: ClientSession) -> IFileSystemServiceProxy
[src]
impl From<ClientSession> for StaticServiceProxy
[src]
fn from(sess: ClientSession) -> StaticServiceProxy
[src]
impl From<ClientSession> for ILoaderInterfaceProxy
[src]
fn from(sess: ClientSession) -> ILoaderInterfaceProxy
[src]
impl From<ClientSession> for IPipeProxy
[src]
fn from(sess: ClientSession) -> IPipeProxy
[src]
impl From<ClientSession> for ITwiliServiceProxy
[src]
fn from(sess: ClientSession) -> ITwiliServiceProxy
[src]
impl From<ClientSession> for ITwiliManagerServiceProxy
[src]
fn from(sess: ClientSession) -> ITwiliManagerServiceProxy
[src]
impl From<ClientSession> for IExample4Proxy
[src]
fn from(sess: ClientSession) -> IExample4Proxy
[src]
impl From<ClientSession> for IExample3SubsessionProxy
[src]
fn from(sess: ClientSession) -> IExample3SubsessionProxy
[src]
impl From<ClientSession> for IBufferProxy
[src]
fn from(sess: ClientSession) -> IBufferProxy
[src]
impl From<ClientSession> for IExample2Proxy
[src]
fn from(sess: ClientSession) -> IExample2Proxy
[src]
impl From<ClientSession> for IExample3Proxy
[src]
fn from(sess: ClientSession) -> IExample3Proxy
[src]
impl From<ClientSession> for IExample1Proxy
[src]
fn from(sess: ClientSession) -> IExample1Proxy
[src]
impl From<ClientSession> for IDiskProxy
[src]
fn from(sess: ClientSession) -> IDiskProxy
[src]
impl From<ClientSession> for AhciInterfaceProxy
[src]
fn from(sess: ClientSession) -> AhciInterfaceProxy
[src]
impl From<ClientSession> for TimeZoneServiceProxy
[src]
fn from(sess: ClientSession) -> TimeZoneServiceProxy
[src]
impl From<ClientSession> for RTCManagerProxy
[src]
fn from(sess: ClientSession) -> RTCManagerProxy
[src]
impl From<ClientSession> for StaticServiceProxy
[src]
fn from(sess: ClientSession) -> StaticServiceProxy
[src]
impl From<ClientSession> for IFileProxy
[src]
fn from(sess: ClientSession) -> IFileProxy
[src]
impl From<ClientSession> for IDirectoryProxy
[src]
fn from(sess: ClientSession) -> IDirectoryProxy
[src]
impl From<IBufferProxy> for ClientSession
[src]
fn from(sess: IBufferProxy) -> ClientSession
[src]
impl From<IDirectoryProxy> for ClientSession
[src]
fn from(sess: IDirectoryProxy) -> ClientSession
[src]
impl From<IDiskProxy> for ClientSession
[src]
fn from(sess: IDiskProxy) -> ClientSession
[src]
impl From<IExample1Proxy> for ClientSession
[src]
fn from(sess: IExample1Proxy) -> ClientSession
[src]
impl From<IExample2Proxy> for ClientSession
[src]
fn from(sess: IExample2Proxy) -> ClientSession
[src]
impl From<IExample3Proxy> for ClientSession
[src]
fn from(sess: IExample3Proxy) -> ClientSession
[src]
impl From<IExample3SubsessionProxy> for ClientSession
[src]
fn from(sess: IExample3SubsessionProxy) -> ClientSession
[src]
impl From<IExample4Proxy> for ClientSession
[src]
fn from(sess: IExample4Proxy) -> ClientSession
[src]
impl From<IFileProxy> for ClientSession
[src]
fn from(sess: IFileProxy) -> ClientSession
[src]
impl From<IFileSystemProxy> for ClientSession
[src]
fn from(sess: IFileSystemProxy) -> ClientSession
[src]
impl From<IFileSystemServiceProxy> for ClientSession
[src]
fn from(sess: IFileSystemServiceProxy) -> ClientSession
[src]
impl From<ILoaderInterfaceProxy> for ClientSession
[src]
fn from(sess: ILoaderInterfaceProxy) -> ClientSession
[src]
impl From<IPipeProxy> for ClientSession
[src]
fn from(sess: IPipeProxy) -> ClientSession
[src]
impl From<IStorageProxy> for ClientSession
[src]
fn from(sess: IStorageProxy) -> ClientSession
[src]
impl From<ITwiliManagerServiceProxy> for ClientSession
[src]
fn from(sess: ITwiliManagerServiceProxy) -> ClientSession
[src]
impl From<ITwiliServiceProxy> for ClientSession
[src]
fn from(sess: ITwiliServiceProxy) -> ClientSession
[src]
impl From<IUserInterfaceProxy> for ClientSession
[src]
fn from(sess: IUserInterfaceProxy) -> ClientSession
[src]
impl From<RTCManagerProxy> for ClientSession
[src]
fn from(sess: RTCManagerProxy) -> ClientSession
[src]
impl From<StaticServiceProxy> for ClientSession
[src]
fn from(sess: StaticServiceProxy) -> ClientSession
[src]
impl From<StaticServiceProxy> for ClientSession
[src]
fn from(sess: StaticServiceProxy) -> ClientSession
[src]
impl From<TimeZoneServiceProxy> for ClientSession
[src]
fn from(sess: TimeZoneServiceProxy) -> ClientSession
[src]
impl From<ViInterfaceProxy> for ClientSession
[src]
fn from(sess: ViInterfaceProxy) -> 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]
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> SizedIPCBuffer for T
[src]
fn size(&Self) -> usize
[src]
fn is_cool(usize, usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(usize, usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(usize, usize) -> &'a 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>,