pub struct Credential(/* private fields */);Expand description
An immutable broadcast credential: cheap to clone, never serialized, redacted from Debug.
Implementations§
Source§impl Credential
impl Credential
Sourcepub fn new(config: Config) -> Result<Self>
pub fn new(config: Config) -> Result<Self>
Check the bounds and extract the HKDF PRK.
§Errors
Error::Identity if context exceeds 65535 bytes or kid exceeds 2^53-1.
Sourcepub fn path(&self, semantic: &str) -> Result<PathOwned>
pub fn path(&self, semantic: &str) -> Result<PathOwned>
The opaque broadcast path for a semantic broadcast name; instances publish at <path>/<epoch>.
§Errors
Error::Identity if semantic exceeds 65535 bytes.
Sourcepub fn generation(&self, epoch: Epoch) -> Generation
pub fn generation(&self, epoch: Epoch) -> Generation
Bind an epoch, scoping every name and key derived from this credential.
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnsafeUnpin for Credential
impl UnwindSafe for Credential
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