pub struct Door(_);
Expand description
A Descriptor for the Door Server
When a door is created, the kernel hands us back a reference to it by giving us an index in our descriptor table. This is true even if the door hasn’t been attached to the filesystem yet, a la pipes or sockets.
Implementations§
source§impl Door
impl Door
sourcepub fn create(sp: ServerProcedure) -> Result<Self, Error>
pub fn create(sp: ServerProcedure) -> Result<Self, Error>
Create a new Door with the specified server procedure. This will not
expose the door to the filesystem by default. It will assume that you
are not using a door cookie, and that you do not need to set any
DoorAttributes
.
Create a new Door with a Cookie. This will not expose the door to the
filesystem by default. It will use the door cookie that you provide, but
will assume that you do not need to set any DoorAttributes
.
sourcepub fn create_with_attributes(
sp: ServerProcedure,
attrs: DoorAttributes
) -> Result<Self, Error>
pub fn create_with_attributes( sp: ServerProcedure, attrs: DoorAttributes ) -> Result<Self, Error>
Create a new Door with Attributes. This will not expose the door to the
filesystem by default. It will use the DoorAttributes
that you
provide, but will assume that you are not using a door cookie.
Create a new Door with Cookie and Attributes. This will not expose the
door to the filesystem by default. It will use the DoorAttributes
and cookie that you provide.