Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/actix/examples
/ functions
Functions
527 in github.com/actix/examples
⨍
Functions
527
◇
Types & classes
153
↓ 1 callers
Method
hb
helper method that sends ping to client every 5 seconds (HEARTBEAT_INTERVAL). also this method checks heartbeats from client
websockets/chat/src/session.rs:37
↓ 1 callers
Method
hb
helper method that sends ping to client every 5 seconds (HEARTBEAT_INTERVAL). also this method checks heartbeats from client
websockets/chat-tcp/src/main.rs:201
↓ 1 callers
Method
hb
helper method that sends ping to client every second. also this method check heartbeats from client
websockets/chat-tcp/src/session.rs:158
↓ 1 callers
Method
inc
(&mut self)
json/jsonrpc/src/main.rs:123
↓ 1 callers
Function
init_item_cache
()
background-jobs/src/ephemeral_jobs.rs:9
↓ 1 callers
Function
init_pool
(database_url: &str)
basics/todo/src/db.rs:5
↓ 1 callers
Function
init_rustls_provider
Load default rustls provider, to be done once for the process.
examples-common/src/lib.rs:17
↓ 1 callers
Function
insert_bank_data
Insert data into the database table `bank_details`.
databases/mysql/src/persistence.rs:183
↓ 1 callers
Function
insert_branch_data
Insert data into the database table `branch_details`.
databases/mysql/src/persistence.rs:202
↓ 1 callers
Function
insert_customer_data
Insert data into the database table `customer_details`.
databases/mysql/src/persistence.rs:240
↓ 1 callers
Function
insert_new_item
Run query using Diesel to insert a new database row and return the result.
databases/diesel-async/src/actions.rs:28
↓ 1 callers
Function
insert_new_user
Run query using Diesel to insert a new database row and return the result.
databases/diesel/src/actions.rs:24
↓ 1 callers
Function
insert_teller_data
Insert data into the database table `teller_details`.
databases/mysql/src/persistence.rs:221
↓ 1 callers
Method
lang_id
(&self)
templating/fluent/src/lang_choice.rs:26
↓ 1 callers
Method
list_rooms
(&mut self, ctx: &mut ws::WebsocketContext<Self>)
websockets/chat-broker/src/session.rs:48
↓ 1 callers
Function
load_encrypted_private_key
()
https-tls/openssl/src/main.rs:56
↓ 1 callers
Function
load_rustls_config
()
https-tls/rustls/src/main.rs:44
↓ 1 callers
Function
load_rustls_config
()
https-tls/cert-watch/src/main.rs:109
↓ 1 callers
Function
load_rustls_config
(cert: Certificate)
https-tls/acme-letsencrypt/src/main.rs:183
↓ 1 callers
Function
main
(url, loop)
websockets/chat-broker/client.py:56
↓ 1 callers
Function
main
(url, loop)
websockets/chat-tcp/client.py:56
↓ 1 callers
Method
new_client
Registers client with broadcaster, returning an SSE response body.
server-sent-events/src/broadcast.rs:67
↓ 1 callers
Function
opentelemetry_tracer
(app_name: &str)
tracing/mainmatter-workshop/src/logging.rs:34
↓ 1 callers
Method
put_object_from_file
(&self, local_path: &str, key: &str)
forms/multipart-s3/src/client.rs:83
↓ 1 callers
Function
query
( invitation_id: String, password: String, pool: web::Data<Pool>, )
auth/simple-auth-server/src/register_handler.rs:35
↓ 1 callers
Function
rand_delay_with_jitter
Returns a duration close to 1 second.
background-jobs/src/persistent_jobs.rs:49
↓ 1 callers
Method
register
Sets the server handle to stop.
shutdown-server/src/main.rs:56
↓ 1 callers
Method
remove_stale_clients
Removes all non-responsive clients from broadcast list.
server-sent-events/src/broadcast.rs:48
↓ 1 callers
Function
req
()
json/json/client.py:10
↓ 1 callers
Function
rpc_select
( app_state: &AppState, method: &str, params: Vec<Value>, )
json/jsonrpc/src/main.rs:47
↓ 1 callers
Function
run_app
(tx: mpsc::Sender<ServerHandle>)
run-in-thread/src/main.rs:14
↓ 1 callers
Function
rustls_config
Create simple `rustls` client config.
https-tls/awc-https/src/main.rs:67
↓ 1 callers
Function
select_bank_details
Lists all banks' details.
databases/mysql/src/persistence.rs:259
↓ 1 callers
Function
select_branch_details
Lists all branches' details.
databases/mysql/src/persistence.rs:275
↓ 1 callers
Function
select_customer_details
Lists all customers' details.
databases/mysql/src/persistence.rs:307
↓ 1 callers
Function
select_teller_details
Lists all tellers' details.
databases/mysql/src/persistence.rs:291
↓ 1 callers
Function
send_invitation
(invitation: &Invitation)
auth/simple-auth-server/src/email_service.rs:11
↓ 1 callers
Method
send_msg
(&self, msg: &str)
websockets/chat-broker/src/session.rs:64
↓ 1 callers
Function
spawn_cache_sweep
(cache: Arc<ItemCache>, stop_signal: CancellationToken)
background-jobs/src/ephemeral_jobs.rs:27
↓ 1 callers
Function
start_client
(url, loop)
websockets/chat-broker/client.py:13
↓ 1 callers
Function
start_client
(loop, url)
websockets/echo/websocket-client.py:9
↓ 1 callers
Function
start_client
(url: str)
websockets/chat/client.py:12
↓ 1 callers
Function
start_client
(url, loop)
websockets/chat-tcp/client.py:13
↓ 1 callers
Function
start_processing_email_queue
()
background-jobs/src/persistent_jobs.rs:30
↓ 1 callers
Method
take_room
(&mut self, room_name: &str)
websockets/chat-broker/src/server.rs:17
↓ 1 callers
Function
tcp_server
Define TCP server that will accept incoming TCP connection and create chat actors.
websockets/chat-tcp/src/session.rs:180
↓ 1 callers
Function
tick
()
websockets/chat-broker/client.py:51
↓ 1 callers
Function
tick
()
websockets/chat-tcp/client.py:51
↓ 1 callers
Function
toggle
( pool: web::Data<SqlitePool>, params: web::Path<UpdateParams>, )
basics/todo/src/api.rs:92
↓ 1 callers
Function
toggle_task
(id: i32, pool: &SqlitePool)
basics/todo/src/db.rs:24
↓ 1 callers
Method
upload
(&self, file: &TempFile, key_prefix: &str)
forms/multipart-s3/src/client.rs:74
↓ 1 callers
Method
upload_and_remove
(&self, file: TempFile, key_prefix: &str)
forms/multipart-s3/src/client.rs:68
↓ 1 callers
Method
upload_files
( &self, temp_files: Vec<TempFile>, key_prefix: &str, )
forms/multipart-s3/src/client.rs:53
↓ 1 callers
Method
url
(&self, key: &str)
forms/multipart-s3/src/client.rs:26
↓ 1 callers
Method
user
(context: &Context, id: String)
graphql/juniper-advanced/src/schemas/root.rs:37
↓ 1 callers
Function
verify
(hash: &str, password: &str)
auth/simple-auth-server/src/utils.rs:22
Function
add_bank
( web::Json(bank_data): web::Json<BankData>, data: web::Data<mysql::Pool>, )
databases/mysql/src/routes.rs:17
Function
add_branch
( web::Json(branch_data): web::Json<BranchData>, data: web::Data<mysql::Pool>, )
databases/mysql/src/routes.rs:30
Function
add_customer
( web::Json(customer_data): web::Json<CustomerData>, data: web::Data<mysql::Pool>, )
databases/mysql/src/routes.rs:56
Function
add_item
( pool: web::Data<DbPool>, form: web::Json<models::NewItem>, )
databases/diesel-async/src/main.rs:57
Function
add_part
(_new_part: web::Json<Product>)
basics/nested-routing/src/handlers/parts.rs:9
Function
add_product
(_new_product: web::Json<Product>)
basics/nested-routing/src/handlers/products.rs:9
Function
add_teller
( web::Json(teller_data): web::Json<TellerData>, data: web::Data<mysql::Pool>, )
databases/mysql/src/routes.rs:43
Function
add_user
(client: web::Data<Client>, form: web::Form<User>)
databases/mongodb/src/main.rs:16
Function
add_user
( user: web::Json<User>, ThinData(db_pool): web::ThinData<Pool>, )
databases/postgres/src/main.rs:27
Function
add_user
(client: &Client, user_info: User)
databases/postgres/src/db.rs:21
Function
add_user
( pool: web::Data<DbPool>, form: web::Json<models::NewUser>, )
databases/diesel/src/main.rs:58
Function
again
()
docker/src/main.rs:9
Method
all
(connection: &SqlitePool)
basics/todo/src/model.rs:17
Function
an_expensive_function
(n: web::Path<u64>)
cache/redis/src/main.rs:24
Function
api_versioning
()
guards/src/main.rs:83
Function
app_config
(config: &mut web::ServiceConfig)
forms/form/src/main.rs:20
Method
appears_in
Which movies they appear in.
graphql/async-graphql/src/star_wars/model.rs:52
Function
asyncio_weather
Version 1: Calls 4 queries in sequential order, as an asynchronous handler
databases/sqlite/src/main.rs:25
Function
bad_request
(res: dev::ServiceResponse<B>)
basics/todo/src/api.rs:117
Function
broadcast_msg
( broadcaster: web::Data<Broadcaster>, Path((msg,)): Path<(String,)>, )
server-sent-events/src/main.rs:42
Function
broadcast_ws
Handshake and start broadcast WebSocket handler with heartbeats.
websockets/echo-actorless/src/main.rs:55
Function
broadcast_ws
Broadcast text & binary messages received from a client, respond to ping messages, and monitor connection health to detect network issues and free up
websockets/echo-actorless/src/handler.rs:162
Function
cache_item
( cache: Data<ItemCache>, web::Json(form): web::Json<CacheInsert>, )
background-jobs/src/routes.rs:25
Function
cache_middleware
( req: ServiceRequest, next: Next<impl MessageBody>, )
cache/redis/src/main.rs:55
Function
cache_stuff
( web::Json(info): web::Json<CacheInfo>, redis: web::Data<redis::Client>, )
databases/redis/src/main.rs:27
Method
call
(&self, req: ServiceRequest)
middleware/rate-limit/src/rate_limit.rs:35
Method
call
(&self, mut req: ServiceRequest)
middleware/various/src/read_request_body.rs:52
Method
call
(&self, req: ServiceRequest)
middleware/various/src/read_response_body.rs:49
Method
call
(&self, request: ServiceRequest)
middleware/various/src/redirect.rs:45
Method
call
(&self, req: ServiceRequest)
middleware/request-extensions/src/add_msg.rs:32
Function
chat_route
Entry point for our websocket route
websockets/chat/src/main.rs:24
Function
chat_route
Entry point for our route
websockets/chat-tcp/src/main.rs:23
Function
chat_ws
(req: HttpRequest, stream: web::Payload)
websockets/chat-broker/src/main.rs:15
Function
chat_ws
Handshake and start WebSocket handler with heartbeats.
websockets/chat-actorless/src/main.rs:33
Function
chat_ws
Echo text & binary messages received from the client, respond to ping messages, and monitor connection health to detect network issues and free up res
websockets/chat-actorless/src/handler.rs:17
Method
check
(&self, ctx: &GuardContext<'_>)
guards/src/main.rs:17
Function
config_app
(cfg: &mut web::ServiceConfig)
basics/nested-routing/src/app_config.rs:5
Method
create
Constructs new broadcaster and spawns ping loop.
server-sent-events/src/broadcast.rs:24
Method
create_human
(new_human: NewHuman)
graphql/juniper/src/schema.rs:47
Method
create_product
(context: &Context, product: ProductInput)
graphql/juniper-advanced/src/schemas/root.rs:126
Function
create_something
( some_data: web::Json<SomeData>, client: web::Data<Client>, )
json/json-validation/src/main.rs:65
Method
create_user
(context: &Context, user: UserInput)
graphql/juniper-advanced/src/schemas/root.rs:94
Method
default
()
middleware/http-response/src/main.rs:15
Method
default
()
middleware/http-response/src/simple.rs:22
← previous
next →
101–200 of 527, ranked by callers