pub struct SignerProxy { /* private fields */ }Implementations§
Source§impl SignerProxy
impl SignerProxy
pub fn new(core: Arc<dyn CoreSigner>) -> Self
pub fn with_proc( core: Arc<dyn CoreSigner>, proc_tree: Box<dyn ProcTree>, ) -> Self
Sourcepub fn bind(
&self,
session: &str,
nick: &str,
root_pid: u32,
uid: u32,
token: String,
) -> String
pub fn bind( &self, session: &str, nick: &str, root_pid: u32, uid: u32, token: String, ) -> String
Called by spawn once the PTY child exists. Returns the handle for the PTY env. A rebind of the same session drops its previous handle.
Sourcepub fn reserve(&self, session: &str, provider: &str, uid: u32) -> String
pub fn reserve(&self, session: &str, provider: &str, uid: u32) -> String
At spawn, before the PTY exists: a handle for its env; identity is provisioned lazily.
Sourcepub fn attach_pid(&self, session: &str, pid: u32)
pub fn attach_pid(&self, session: &str, pid: u32)
The PTY child is running: bind the handle to its process tree.
pub fn has_session(&self, session: &str) -> bool
Sourcepub fn send_for_peer(
&self,
handle: &str,
peer_pid: u32,
peer_uid: u32,
letter: &Value,
) -> Result<Value, Refusal>
pub fn send_for_peer( &self, handle: &str, peer_pid: u32, peer_uid: u32, letter: &Value, ) -> Result<Value, Refusal>
Send a letter as the peer’s own session (core signs and delivers).
Sourcepub fn sign_for_peer(
&self,
handle: &str,
peer_pid: u32,
peer_uid: u32,
op: &str,
payload: &[u8],
) -> Result<SignedReply, Refusal>
pub fn sign_for_peer( &self, handle: &str, peer_pid: u32, peer_uid: u32, op: &str, payload: &[u8], ) -> Result<SignedReply, Refusal>
Authorize a peer (kernel-reported pid/uid) presenting handle, then ask core to sign.
Auto Trait Implementations§
impl !Freeze for SignerProxy
impl !RefUnwindSafe for SignerProxy
impl !UnwindSafe for SignerProxy
impl Send for SignerProxy
impl Sync for SignerProxy
impl Unpin for SignerProxy
impl UnsafeUnpin for SignerProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more