pub struct SdkConfig {
pub shared_key: bool,
pub ratchet_window_size: i32,
pub failure_tolerance: i32,
pub key_ring_size: u8,
pub key_size_bits: u16,
pub kdf: &'static str,
pub salt: &'static [u8],
pub sif_trailer: &'static [u8],
pub publish_data: bool,
}Expand description
The SDK configuration every bridge uses (bridge_config_constants).
Fields§
Per-participant keys (sharedKey: false).
ratchet_window_size: i32Ratchet window.
failure_tolerance: i32Failure tolerance.
key_ring_size: u8Key ring size.
key_size_bits: u16Key size in bits.
kdf: &'static strThe KDF.
salt: &'static [u8]The HKDF salt.
sif_trailer: &'static [u8]The SIF trailer (always empty).
publish_data: boolData packets are never published.
Trait Implementations§
impl Copy for SdkConfig
impl Eq for SdkConfig
impl StructuralPartialEq for SdkConfig
Auto Trait Implementations§
impl Forget for SdkConfig
impl Freeze for SdkConfig
impl Move for SdkConfig
impl RefUnwindSafe for SdkConfig
impl Send for SdkConfig
impl Sync for SdkConfig
impl Unpin for SdkConfig
impl UnsafeUnpin for SdkConfig
impl UnwindSafe for SdkConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more