pub struct UplinkCoreSigner { /* private fields */ }Expand description
Core signer over the node-call channel (Noise over the uplink, opaque to C2; core takes the node id from the stream). Called from blocking threads only.
Implementations§
Trait Implementations§
Source§impl CoreSigner for UplinkCoreSigner
impl CoreSigner for UplinkCoreSigner
fn sign( &self, token: &str, op: &str, payload: &[u8], ) -> Result<SignedReply, String>
Source§fn provision(
&self,
provider: &str,
session: &str,
) -> Result<(String, String), String>
fn provision( &self, provider: &str, session: &str, ) -> Result<(String, String), String>
Identity for a fresh session: (nick, token). Default: not supported.
Source§fn send(&self, token: &str, letter: &Value) -> Result<Value, String>
fn send(&self, token: &str, letter: &Value) -> Result<Value, String>
Signer-signed letter delivered by core from the token’s own nick.
fn revoke(&self, session: &str) -> Result<(), String>
Auto Trait Implementations§
impl !RefUnwindSafe for UplinkCoreSigner
impl !UnwindSafe for UplinkCoreSigner
impl Freeze for UplinkCoreSigner
impl Send for UplinkCoreSigner
impl Sync for UplinkCoreSigner
impl Unpin for UplinkCoreSigner
impl UnsafeUnpin for UplinkCoreSigner
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