Struct portunusd::door::Client [−][src]
pub struct Client { /* fields omitted */ }
Expand description
A Client handle for a door. Used by PortunusD to call your application.
When your application wants to receive requests from PortunusD, it must create a Door on the
filesystem which points to a ServerProcedure
function. This Client type is the reciprocal
of a ServerProcedure – it is PortunusD’s way of accessing your application, much like a file
handle is a means of accessing the bytes which make up a file.
Implementations
Try to create a new client, given a filesystem to a door.
This may fail if the door does not exist, if the path is not a door, or if some other terrible thing has happened.
Invoke the Server Procedure defined in a PortunusdD application
Forwad a slice of bytes through a door to a PortunusD application. If successful, the
resulting Vec<u8>
will contain the bytes returned from the application’s server
procedure.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Client
impl UnwindSafe for Client