pub enum AddSeedMode {
IKM(Ikm),
Wrapped(WrappedSeed),
}Expand description
Specifies how PSK seeds are provided when joining teams.
Teams share a single PSK seed that is used to derive Pre-Shared Keys (PSKs) for QUIC connections between team members.
This type will be removed soon since certificates will be used instead of PSKs in the future.
Variants§
IKM(Ikm)
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 Clone for AddSeedMode
impl Clone for AddSeedMode
Source§fn clone(&self) -> AddSeedMode
fn clone(&self) -> AddSeedMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AddSeedMode
impl Debug for AddSeedMode
Source§impl<'de> Deserialize<'de> for AddSeedMode
impl<'de> Deserialize<'de> for AddSeedMode
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 AddSeedMode
impl !RefUnwindSafe for AddSeedMode
impl Send for AddSeedMode
impl !Sync for AddSeedMode
impl Unpin for AddSeedMode
impl UnwindSafe for AddSeedMode
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