[Yunq] Allow creating a client cap.
This commit is contained in:
parent
52f530f8c1
commit
f551cc88cd
1 changed files with 5 additions and 0 deletions
|
|
@ -38,6 +38,11 @@ pub trait YunqServer {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn endpoint_cap(&self) -> &Capability;
|
fn endpoint_cap(&self) -> &Capability;
|
||||||
|
|
||||||
|
fn create_client_cap(&self) -> Result<Capability, ZError> {
|
||||||
|
self.endpoint_cap()
|
||||||
|
.duplicate(!mammoth::zion::kZionPerm_Read)
|
||||||
|
}
|
||||||
fn handle_request(
|
fn handle_request(
|
||||||
&self,
|
&self,
|
||||||
method_number: u64,
|
method_number: u64,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue