pub struct BoxKey(/* private fields */);Implementations§
Source§impl BoxKey
impl BoxKey
pub fn from_seed(seed: [u8; 32]) -> BoxKey
Sourcepub fn load_or_mint(root: &Path) -> Result<BoxKey, Error>
pub fn load_or_mint(root: &Path) -> Result<BoxKey, Error>
<root>/fleet/box.ed25519, minted on first use. Minted ONCE whoever asks first: a
fresh seed is written beside and LINKED into place, which fails when another caller
got there first — then the one on disk is used.
pub fn public(&self) -> [u8; 32]
Auto Trait Implementations§
impl Freeze for BoxKey
impl RefUnwindSafe for BoxKey
impl Send for BoxKey
impl Sync for BoxKey
impl Unpin for BoxKey
impl UnsafeUnpin for BoxKey
impl UnwindSafe for BoxKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request