pub struct AisServerConfig {
pub signaling_heartbeat_interval_secs: u32,
pub token_ttl_secs: u64,
pub renewal_token_ttl_secs: u64,
pub renewal_rotation_window_secs: u64,
pub renewal_token_secret: String,
}Expand description
AIS 服务器配置
Fields§
§signaling_heartbeat_interval_secs: u32Signaling Server 心跳间隔(秒)
在 RegisterResponse 中返回,指导客户端连接 Signaling Server 后的心跳频率
token_ttl_secs: u64Token 有效期(秒)
生成的 AIdCredential 的过期时间
renewal_token_ttl_secs: u64Renewal token 有效期(秒)
初始签发 renewal token 时的 TTL。到达 rotation window 时 确定性派生 successor token,旧 token 在自身 expiry 前持续有效。
renewal_rotation_window_secs: u64Renewal rotation window(秒)
当 renewal token 剩余有效期小于此值时进入 rotation window, 开始确定性派生 successor token。
renewal_token_secret: StringRenewal token secret(base64 编码,解码后至少 32 字节)
用于确定性派生 successor token(HMAC-SHA256)。
必须在同一 actrix 集群内一致。不得使用 actrix_shared_key 作为回退。
Trait Implementations§
Source§impl Clone for AisServerConfig
impl Clone for AisServerConfig
Source§fn clone(&self) -> AisServerConfig
fn clone(&self) -> AisServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AisServerConfig
impl Debug for AisServerConfig
Source§impl Default for AisServerConfig
impl Default for AisServerConfig
Source§impl<'de> Deserialize<'de> for AisServerConfig
impl<'de> Deserialize<'de> for AisServerConfig
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 AisServerConfig
impl RefUnwindSafe for AisServerConfig
impl Send for AisServerConfig
impl Sync for AisServerConfig
impl Unpin for AisServerConfig
impl UnsafeUnpin for AisServerConfig
impl UnwindSafe for AisServerConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request