pub enum SeedMode {
Generate,
IKM([u8; 32]),
Wrapped(WrappedSeed),
}Expand description
Specifies how PSK seeds are provided when creating or joining teams.
Teams share a single PSK seed that is used to derive Pre-Shared Keys (PSKs) for QUIC connections between team members.
Variants§
Generate
Generates a new random seed.
Used by team owners in the create_team API when establishing a new team.
IKM([u8; 32])
Provides raw input key material to derive a seed.
The IKM must be exactly 32 bytes. This mode is available in both:
create_team: Allows team owners to specify deterministic seed materialadd_team: Allows non-owners to join using pre-shared key material
Wrapped(WrappedSeed)
Provides an encrypted seed for secure distribution.
Used by non-owners in the add_team API to join an existing team.
Seeds are wrapped (encrypted) to prevent plaintext exposure during
the join process.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SeedMode
impl<'de> Deserialize<'de> for SeedMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for SeedMode
impl !RefUnwindSafe for SeedMode
impl Send for SeedMode
impl !Sync for SeedMode
impl Unpin for SeedMode
impl UnwindSafe for SeedMode
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