pub struct Config {
pub context: Bytes,
pub kid: u64,
pub secret: [u8; 32],
}Expand description
What the application distributes over its own authenticated channel.
Fields§
§context: BytesOpaque bytes both ends agree on as the broadcast’s end-to-end identity.
kid: u64Selects among the credentials the application retains; rotating the secret is a new kid.
secret: [u8; 32]32 bytes from a cryptographically secure random generator.
Auto Trait Implementations§
impl !Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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