#[non_exhaustive]pub struct RefreshRequest {
pub user: String,
pub client: String,
pub expired: bool,
pub expire_at: i64,
pub info: Option<Box<RawValue>>,
pub session: String,
pub label_filter: Option<FilterNode>,
pub all_users: bool,
}Expand description
RefreshRequest refreshes a user’s connections, mostly useful with unidirectional transports. Without expire_at the connections become non-expiring.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.user: StringThe ID of the user to refresh. Required, unless all_users is used in Centrifugo PRO.
client: Stringclient limits the call to the connection with this client ID. user is
still required.
expired: boolexpired marks the connections as expired and closes them with an
expired disconnect reason.
expire_at: i64The Unix time in seconds when the connections expire.
info: Option<Box<RawValue>>info attaches or replaces the connection info.
session: Stringsession limits the call to the connection with this session ID. user
is still required.
label_filter: Option<FilterNode>label_filter restricts the call to clients whose labels match this
filter. Centrifugo PRO only.
Not sent when it is empty, as when it is None.
all_users: boolall_users works as SubscribeRequest.all_users. Centrifugo PRO only.
Implementations§
Source§impl RefreshRequest
impl RefreshRequest
Sourcepub fn label_filter(self, value: FilterNode) -> Self
pub fn label_filter(self, value: FilterNode) -> Self
Sets label_filter.