Crate wicrs_server[][src]

Modules

api
auth
channel
config
hub
permission
prelude

Re-export important types, functions and constants.

user

Macros

check_permission

Checks that a hub member has a given permission and returns if they it doesn’t.

Enums

ApiError
DataError

Constants

MAX_NAME_LENGTH
MESSAGE_MAX_SIZE
NAME_ALLOWED_CHARS
USER_AGENT_STRING

Functions

check_name_validity

Wraps is_valid_name to return a Result<()>.

get_system_millis

Get the current time in milliseconds since Unix Epoch.

is_valid_name

Checks if a name is valid (not too long and only allowed characters).

new_id

Generates a new random ID.

Type Definitions

ID

Type used to represent IDs throughout wicrs.

Result