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
↓ 75 callers
Method
run
(mut self)
websockets/chat-actorless/src/server.rs:191
↓ 59 callers
Method
get
(&self)
json/jsonrpc/src/main.rs:119
↓ 44 callers
Method
insert
(todo: NewTask, connection: &SqlitePool)
basics/todo/src/model.rs:31
↓ 40 callers
Function
post
(url = ``, data = {})
auth/simple-auth-server/static/main.js:1
↓ 25 callers
Method
stop
Sends stop signal through contained server handle.
shutdown-server/src/main.rs:61
↓ 19 callers
Method
render
( &self, tmpl: &str, ctx: T, )
templating/minijinja/src/main.rs:20
↓ 11 callers
Method
wait
(&self, d: u64)
json/jsonrpc/src/main.rs:111
↓ 9 callers
Method
as_str
(&self)
forms/form/src/main.rs:91
↓ 7 callers
Method
call
(&self, req: ServiceRequest)
middleware/various/src/simple.rs:51
↓ 7 callers
Function
delete
( pool: web::Data<SqlitePool>, params: web::Path<UpdateParams>, session: Session, )
basics/todo/src/api.rs:103
↓ 7 callers
Method
send_message
Send message to all users in the room
websockets/chat/src/server.rs:93
↓ 6 callers
Method
decode
(&mut self, src: &mut BytesMut)
websockets/chat-tcp/src/codec.rs:50
↓ 6 callers
Method
send_system_message
Send message to users in a room. `skip` is used to prevent messages triggered by a connection also being received by it.
websockets/chat-actorless/src/server.rs:90
↓ 5 callers
Method
connect
Register new session and assign unique ID to this session
websockets/chat-actorless/src/server.rs:120
↓ 5 callers
Function
create
( params: web::Form<CreateForm>, pool: web::Data<SqlitePool>, session: Session, )
basics/todo/src/api.rs:46
↓ 5 callers
Method
handle
( &self, myself: ActorRef<Self::Msg>, message: Self::Msg, state: &mut Self::St
websockets/echo/src/server.rs:94
↓ 5 callers
Method
ping
(&self)
json/jsonrpc/src/main.rs:107
↓ 5 callers
Method
send_message
Send message to all users in the room
websockets/chat-tcp/src/server.rs:79
↓ 5 callers
Function
sleep
()
tracing/mainmatter-workshop/src/routes.rs:12
↓ 4 callers
Method
encode
(&mut self, msg: ChatResponse, dst: &mut BytesMut)
websockets/chat-tcp/src/codec.rs:71
↓ 3 callers
Function
fetch
(session)
protobuf/client.py:47
↓ 3 callers
Function
init
()
tracing/mainmatter-workshop/src/logging.rs:11
↓ 3 callers
Method
name
(&self)
graphql/juniper-advanced/src/schemas/user.rs:33
↓ 3 callers
Function
set_flash
(session: &Session, flash: FlashMessage)
basics/todo/src/session.rs:7
↓ 3 callers
Function
step_x
validate data, post json to httpbin, get it back in the response body, return deserialized
json/json-validation/src/main.rs:42
↓ 2 callers
Method
add_client_to_room
(&mut self, room_name: &str, id: Option<u64>, client: Client)
websockets/chat-broker/src/server.rs:23
↓ 2 callers
Method
disconnect
Unregister connection from room map and broadcast disconnection message.
websockets/chat-actorless/src/server.rs:142
↓ 2 callers
Method
dump
Prints out the value as JSON string.
json/jsonrpc/src/convention.rs:57
↓ 2 callers
Function
get_rows_as_annual_agg
(mut statement: Statement)
databases/sqlite/src/db.rs:75
↓ 2 callers
Function
get_rows_as_month_agg
(mut statement: Statement)
databases/sqlite/src/db.rs:114
↓ 2 callers
Method
id
(&self)
graphql/juniper-advanced/src/schemas/user.rs:30
↓ 2 callers
Function
init_standard_logger
Initializes standard tracing subscriber.
examples-common/src/lib.rs:5
↓ 2 callers
Function
initialize_db_pool
Initialize database connection pool based on `DATABASE_URL` environment variable. See more: <https://docs.rs/diesel-async/latest/diesel_async/pooled_
databases/diesel-async/src/main.rs:101
↓ 2 callers
Function
initialize_db_pool
Initialize database connection pool based on `DATABASE_URL` environment variable. See more: <https://docs.rs/diesel/latest/diesel/r2d2/index.html>.
databases/diesel/src/main.rs:105
↓ 2 callers
Method
join_room
(&mut self, room_name: &str, ctx: &mut ws::WebsocketContext<Self>)
websockets/chat-broker/src/session.rs:18
↓ 2 callers
Method
join_room
Join room, send disconnect message to old room send join message to new room.
websockets/chat-actorless/src/server.rs:170
↓ 2 callers
Method
list_rooms
Returns list of created room names.
websockets/chat-actorless/src/server.rs:165
↓ 2 callers
Function
load_certified_key
()
https-tls/hot-reload/src/main.rs:80
↓ 2 callers
Function
print_status
(accepting_connections)
server-sent-events/drain.js:37
↓ 2 callers
Function
query
Diesel query
auth/simple-auth-server/src/auth_handler.rs:65
↓ 2 callers
Function
query_characters
( after: Option<String>, before: Option<String>, first: Option<i32>, last: Option<i32>, ch
graphql/async-graphql/src/star_wars/model.rs:184
↓ 2 callers
Method
send_chat_message
(&mut self, room_name: &str, msg: &str, _src: u64)
websockets/chat-broker/src/server.rs:48
↓ 2 callers
Method
send_message
Send message to all other users in current room. `conn` is used to find current room and prevent messages sent by a connection also being received by
websockets/chat-actorless/src/server.rs:109
↓ 2 callers
Function
success
simple handle
auth/casbin/src/main.rs:7
↓ 1 callers
Method
allow_query
Mutates leaky bucket for accepted request.
middleware/rate-limit/src/rate_limit.rs:118
↓ 1 callers
Method
broadcast
Broadcasts `msg` to all clients.
server-sent-events/src/broadcast.rs:78
↓ 1 callers
Function
bytes_to_payload
(buf: web::Bytes)
middleware/encrypted-payloads/src/main.rs:159
↓ 1 callers
Function
bytes_to_payload
(buf: web::Bytes)
middleware/various/src/read_request_body.rs:71
↓ 1 callers
Method
call
(&self, req: ServiceRequest)
middleware/http-response/src/simple.rs:65
↓ 1 callers
Function
clear_flash
(session: &Session)
basics/todo/src/session.rs:15
↓ 1 callers
Function
create_app
()
guards/src/main.rs:51
↓ 1 callers
Function
create_bank
( pool: &mysql::Pool, bank_name: String, country: String, )
databases/mysql/src/persistence.rs:41
↓ 1 callers
Function
create_branch
( pool: &mysql::Pool, branch_name: String, location: String, )
databases/mysql/src/persistence.rs:66
↓ 1 callers
Function
create_customer
( pool: &mysql::Pool, customer_name: String, branch_name: String, )
databases/mysql/src/persistence.rs:122
↓ 1 callers
Function
create_invitation
( eml: String, pool: web::Data<Pool>, )
auth/simple-auth-server/src/invitation_handler.rs:25
↓ 1 callers
Function
create_schema
()
graphql/juniper-advanced/src/schemas/root.rs:163
↓ 1 callers
Function
create_schema
()
graphql/juniper/src/schema.rs:59
↓ 1 callers
Function
create_task
(todo: String, pool: &SqlitePool)
basics/todo/src/db.rs:16
↓ 1 callers
Function
create_teller
( pool: &mysql::Pool, teller_name: String, branch_name: String, )
databases/mysql/src/persistence.rs:94
↓ 1 callers
Function
create_username_index
Creates an index on the "username" field to force the values to be unique.
databases/mongodb/src/main.rs:40
↓ 1 callers
Method
delete_file
Attempts to deletes object from S3. Returns true if successful.
forms/multipart-s3/src/client.rs:111
↓ 1 callers
Function
delete_task
(id: i32, pool: &SqlitePool)
basics/todo/src/db.rs:31
↓ 1 callers
Function
dispatch
()
websockets/chat-broker/client.py:28
↓ 1 callers
Function
dispatch
()
websockets/echo/websocket-client.py:24
↓ 1 callers
Function
dispatch
(ws: aiohttp.ClientWebSocketResponse)
websockets/chat/client.py:15
↓ 1 callers
Function
dispatch
()
websockets/chat-tcp/client.py:28
↓ 1 callers
Function
do_something_random
randomly returns either () or one of the 4 CustomError variants
basics/error-handling/src/main.rs:88
↓ 1 callers
Function
error_handlers
Custom error handlers, to return HTML responses when an error occurs.
templating/tera/src/main.rs:55
↓ 1 callers
Function
error_handlers
Custom error handlers, to return HTML responses when an error occurs.
templating/fluent/src/main.rs:92
↓ 1 callers
Function
error_handlers
Custom error handlers, to return HTML responses when an error occurs.
templating/tinytemplate/src/main.rs:60
↓ 1 callers
Function
error_handlers
Custom error handlers, to return HTML responses when an error occurs.
templating/handlebars/src/main.rs:71
↓ 1 callers
Method
fetch_file
(&self, key: &str)
forms/multipart-s3/src/client.rs:34
↓ 1 callers
Function
fib_recursive
(n: u64)
cache/redis/src/main.rs:17
↓ 1 callers
Function
find_item_by_id
/// Run query using Diesel to find item by uid and return it.
databases/diesel-async/src/actions.rs:10
↓ 1 callers
Function
find_user_by_uid
Run query using Diesel to find user by uid and return it.
databases/diesel/src/actions.rs:9
↓ 1 callers
Function
gen_tls_cert
(user_domain: &str, contact_email: &str)
https-tls/acme-letsencrypt/src/main.rs:14
↓ 1 callers
Function
get_all_tasks
(pool: &SqlitePool)
basics/todo/src/db.rs:12
↓ 1 callers
Function
get_bank_data
(pool: &mysql::Pool)
databases/mysql/src/persistence.rs:150
↓ 1 callers
Function
get_branch_data
(pool: &mysql::Pool)
databases/mysql/src/persistence.rs:158
↓ 1 callers
Function
get_coldest_months
(conn: Connection)
databases/sqlite/src/db.rs:100
↓ 1 callers
Function
get_coldest_years
(conn: Connection)
databases/sqlite/src/db.rs:61
↓ 1 callers
Function
get_conn_builder
( db_user: String, db_password: String, db_host: String, db_port: u16, db_name: String, )
databases/mysql/src/main.rs:9
↓ 1 callers
Function
get_customer_data
(pool: &mysql::Pool)
databases/mysql/src/persistence.rs:174
↓ 1 callers
Function
get_db_pool
()
graphql/juniper-advanced/src/db.rs:8
↓ 1 callers
Function
get_error_response
Generic error handler.
templating/tera/src/main.rs:69
↓ 1 callers
Function
get_error_response
Generic error handler.
templating/minijinja/src/main.rs:128
↓ 1 callers
Function
get_error_response
Generic error handler.
templating/fluent/src/main.rs:110
↓ 1 callers
Function
get_error_response
Generic error handler.
templating/tinytemplate/src/main.rs:74
↓ 1 callers
Function
get_error_response
Generic error handler.
templating/handlebars/src/main.rs:85
↓ 1 callers
Function
get_flash
(session: &Session)
basics/todo/src/session.rs:11
↓ 1 callers
Function
get_hottest_months
(conn: Connection)
databases/sqlite/src/db.rs:86
↓ 1 callers
Function
get_hottest_years
(conn: Connection)
databases/sqlite/src/db.rs:47
↓ 1 callers
Function
get_teller_data
(pool: &mysql::Pool)
databases/mysql/src/persistence.rs:166
↓ 1 callers
Function
go
(loop)
protobuf/client.py:59
↓ 1 callers
Method
handle_hb
( &self, state: &mut (Instant, actix_ws::Session), myself: &ActorRef<WsMessage>, )
websockets/echo/src/server.rs:23
↓ 1 callers
Function
handle_post_1
Simple handle POST request
forms/form/src/main.rs:45
↓ 1 callers
Function
handle_post_2
State and POST Params
forms/form/src/main.rs:52
↓ 1 callers
Function
handle_post_3
Request and POST Params
forms/form/src/main.rs:63
↓ 1 callers
Method
handle_ws_msg
( &self, msg: AggregatedMessage, state: &mut (Instant, actix_ws::Session), mys
websockets/echo/src/server.rs:43
↓ 1 callers
Function
hash_password
PLEASE NOTE THIS IS ONLY FOR DEMO PLEASE DO MORE RESEARCH FOR PRODUCTION USE
auth/simple-auth-server/src/utils.rs:11
next →
1–100 of 527, ranked by callers