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
Method
default
()
websockets/chat-tcp/src/server.rs:65
Method
default
()
json/jsonrpc/src/convention.rs:130
Function
default_handler
(req_method: Method)
basics/basics/src/main.rs:46
Function
del_stuff
(redis: web::Data<redis::Client>)
databases/redis/src/main.rs:53
Function
delete_from_s3
( s3_client: web::Data<Client>, Path((s3_key,)): Path<(String,)>, )
forms/multipart-s3/src/main.rs:78
Method
delete_with_id
(id: i32, connection: &SqlitePool)
basics/todo/src/model.rs:60
Method
disabled
()
middleware/request-extensions/src/add_msg.rs:55
Function
do_something
(session: Session)
auth/redis-session/src/main.rs:30
Function
do_something
()
basics/error-handling/src/main.rs:102
Method
droid
(&self, id: &str)
graphql/async-graphql/src/star_wars/mod.rs:129
Method
droid
( &self, ctx: &Context<'a>, #[graphql(desc = "id of the droid")] id: String, )
graphql/async-graphql/src/star_wars/model.rs:150
Method
droids
(&self)
graphql/async-graphql/src/star_wars/mod.rs:145
Method
droids
( &self, ctx: &Context<'a>, after: Option<String>, before: Option<String>,
graphql/async-graphql/src/star_wars/model.rs:158
Function
echo_heartbeat_ws
Handshake and start WebSocket handler with heartbeats.
websockets/echo-actorless/src/main.rs:20
Function
echo_heartbeat_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/echo-actorless/src/handler.rs:21
Function
echo_ws
WebSocket handshake and start `MyWebSocket` actor.
websockets/echo/src/main.rs:17
Function
echo_ws
Handshake and start basic WebSocket handler. This example is just for simple demonstration. In reality, you likely want to include some handling of h
websockets/echo-actorless/src/main.rs:34
Function
echo_ws
Echo text & binary messages received from the client and respond to ping messages. This example is just for demonstration of simplicity. In reality,
websockets/echo-actorless/src/handler.rs:113
Method
email
(&self)
graphql/juniper-advanced/src/schemas/user.rs:36
Method
enabled
()
middleware/request-extensions/src/add_msg.rs:51
Function
encrypt_payloads
( mut req: dev::ServiceRequest, next: Next<impl MessageBody>, )
middleware/encrypted-payloads/src/main.rs:88
Method
error
(message: &str)
basics/todo/src/session.rs:33
Method
error_response
(&self)
auth/simple-auth-server/src/errors.rs:20
Method
error_response
(&self)
basics/error-handling/src/main.rs:56
Method
error_response
builds the actual response to send back when an error occurs
json/json-error/src/main.rs:22
Method
error_response
(&self)
databases/postgres/src/errors.rs:16
Function
event_stream
(broadcaster: web::Data<Broadcaster>)
server-sent-events/src/main.rs:37
Function
execute
(pool: &Pool, query: Queries)
databases/sqlite/src/db.rs:25
Function
exp_buckets
(base: f64)
tracing/mainmatter-workshop/src/prometheus.rs:25
Function
extract_item
This handler uses json extractor with limit
json/json/src/main.rs:17
Function
fail
(enforcer: web::Data<Enforcer>)
auth/casbin/src/main.rs:16
Function
favicon
()
basics/basics/src/main.rs:21
Function
fetch_from_s3
( s3_client: web::Data<Client>, method: Method, Path((s3_key,)): Path<(String,)>, )
forms/multipart-s3/src/main.rs:52
Function
fetch_image
(client: ThinData<Client>)
https-tls/awc-https/src/main.rs:10
Method
fmt
(&self, f: &mut fmt::Formatter)
json/json-error/src/main.rs:15
Method
fmt
(&self, f: &mut fmt::Formatter)
json/jsonrpc/src/convention.rs:64
Function
forward
Forwards the incoming HTTP request using `awc`.
http-proxy/src/main.rs:16
Function
forward_reqwest
Same as `forward` but uses `reqwest` as the client used to forward the request.
http-proxy/src/main.rs:56
Method
friends
(&self, ch: &StarWarsChar)
graphql/async-graphql/src/star_wars/mod.rs:153
Method
friends
The friends of the human, or an empty list if they have none.
graphql/async-graphql/src/star_wars/model.rs:37
Method
from
(_: ParseError)
auth/simple-auth-server/src/errors.rs:34
Method
from
(email: T)
auth/simple-auth-server/src/models.rs:44
Method
from
(value: DbConfig)
databases/postgres/src/config.rs:16
Method
from_details
(email: S, pwd: T)
auth/simple-auth-server/src/models.rs:22
Method
from_req
(req: &HttpRequest)
templating/fluent/src/lang_choice.rs:17
Method
from_request
(req: &HttpRequest, pl: &mut Payload)
auth/simple-auth-server/src/auth_handler.rs:30
Method
from_request
(req: &HttpRequest, _pl: &mut dev::Payload)
templating/minijinja/src/main.rs:43
Method
from_request
(req: &HttpRequest, _pl: &mut dev::Payload)
templating/fluent/src/lang_choice.rs:36
Method
from_row
(row: Row)
graphql/juniper-advanced/src/schemas/user.rs:15
Method
from_row
(row: Row)
graphql/juniper-advanced/src/schemas/product.rs:16
Function
get_bank
(data: web::Data<mysql::Pool>)
databases/mysql/src/routes.rs:69
Function
get_branch
(data: web::Data<mysql::Pool>)
databases/mysql/src/routes.rs:75
Function
get_client_cert
(connection: &dyn Any, data: &mut Extensions)
https-tls/rustls-client-cert/src/main.rs:41
Function
get_count
Displays state
websockets/chat/src/main.rs:43
Function
get_customer
( data: web::Data<mysql::Pool>, )
databases/mysql/src/routes.rs:87
Function
get_from_cache
(redis: web::Data<redis::Client>)
databases/redis/src/main.rs:6
Function
get_item
( pool: web::Data<DbPool>, item_id: web::Path<Uuid>, )
databases/diesel-async/src/main.rs:26
Function
get_me
(logged_user: LoggedUser)
auth/simple-auth-server/src/auth_handler.rs:61
Function
get_part_detail
(_id: web::Path<String>)
basics/nested-routing/src/handlers/parts.rs:13
Function
get_parts
(_query: web::Query<Option<Part>>)
basics/nested-routing/src/handlers/parts.rs:5
Function
get_product_detail
(_id: web::Path<String>)
basics/nested-routing/src/handlers/products.rs:13
Function
get_products
(_query: web::Query<Option<Part>>)
basics/nested-routing/src/handlers/products.rs:5
Function
get_teller
(data: web::Data<mysql::Pool>)
databases/mysql/src/routes.rs:81
Function
get_user
(client: web::Data<Client>, username: web::Path<String>)
databases/mongodb/src/main.rs:27
Function
get_user
( pool: web::Data<DbPool>, user_uid: web::Path<Uuid>, )
databases/diesel/src/main.rs:26
Function
get_users
(ThinData(db_pool): web::ThinData<Pool>)
databases/postgres/src/main.rs:19
Function
get_users
(client: &Client)
databases/postgres/src/db.rs:6
Function
graphql
( pool: web::Data<Pool>, schema: web::Data<Schema>, data: web::Json<GraphQLRequest>, )
graphql/juniper-advanced/src/handlers.rs:11
Function
graphql
(schema: web::Data<StarWarsSchema>, req: GraphQLRequest)
graphql/async-graphql/src/main.rs:14
Function
graphql
(st: web::Data<Schema>, data: web::Json<GraphQLRequest>)
graphql/juniper/src/main.rs:26
Function
graphql_playground
()
graphql/juniper-advanced/src/handlers.rs:27
Function
graphql_playground
()
graphql/async-graphql/src/main.rs:20
Function
graphql_playground
()
graphql/juniper/src/main.rs:20
Function
greet
(params: web::Path<(String,)>)
templating/sailfish/src/main.rs:21
Function
greet
(name: web::Json<Info>)
json/json-decode-error/src/main.rs:10
Method
handle
(&mut self, msg: JoinRoom, _ctx: &mut Self::Context)
websockets/chat-broker/src/server.rs:73
Method
handle
(&mut self, msg: ChatMessage, ctx: &mut Self::Context)
websockets/chat-broker/src/session.rs:97
Method
handle
(&mut self, msg: Connect, _: &mut Context<Self>)
websockets/chat/src/server.rs:119
Method
handle
(&mut self, msg: server::Message, ctx: &mut Self::Context)
websockets/chat/src/session.rs:101
Method
handle
(&mut self, msg: Result<ws::Message, ws::ProtocolError>, ctx: &mut Self::Context)
websockets/autobahn/src/main.rs:17
Method
handle
(&mut self, msg: session::Message, ctx: &mut Self::Context)
websockets/chat-tcp/src/main.rs:97
Method
handle
(&mut self, msg: Connect, _: &mut Context<Self>)
websockets/chat-tcp/src/server.rs:105
Method
handle
This is main event loop for client requests
websockets/chat-tcp/src/session.rs:83
Function
handle_post_1_integration_test
()
forms/form/src/main.rs:114
Function
handle_post_1_unit_test
()
forms/form/src/main.rs:97
Function
handle_post_2_integration_test
()
forms/form/src/main.rs:159
Function
handle_post_2_unit_test
()
forms/form/src/main.rs:134
Function
handle_post_3_integration_test
()
forms/form/src/main.rs:203
Function
handle_post_3_unit_test
()
forms/form/src/main.rs:183
Function
hello
()
guards/src/main.rs:26
Function
hello
()
templating/sailfish/src/main.rs:39
Function
hello
()
tracing/mainmatter-workshop/src/routes.rs:7
Function
hello
()
shutdown-server/src/main.rs:6
Method
hero
( &self, ctx: &Context<'a>, #[graphql( desc = "If omitted, returns the her
graphql/async-graphql/src/star_wars/model.rs:107
Method
home_planet
The home planet of the human, or null if unknown.
graphql/async-graphql/src/star_wars/model.rs:57
Method
human
(&self, id: &str)
graphql/async-graphql/src/star_wars/mod.rs:121
Method
human
( &self, ctx: &Context<'a>, #[graphql(desc = "id of the human")] id: String, )
graphql/async-graphql/src/star_wars/model.rs:130
Method
human
(_id: String)
graphql/juniper/src/schema.rs:33
Method
humans
(&self)
graphql/async-graphql/src/star_wars/mod.rs:137
Method
humans
( &self, ctx: &Context<'a>, after: Option<String>, before: Option<String>,
graphql/async-graphql/src/star_wars/model.rs:138
← previous
next →
201–300 of 527, ranked by callers