MCPcopy Create free account

hub / github.com/actix/examples / functions

Functions527 in github.com/actix/examples

↓ 75 callersMethodrun
(mut self)
websockets/chat-actorless/src/server.rs:191
↓ 59 callersMethodget
(&self)
json/jsonrpc/src/main.rs:119
↓ 44 callersMethodinsert
(todo: NewTask, connection: &SqlitePool)
basics/todo/src/model.rs:31
↓ 40 callersFunctionpost
(url = ``, data = {})
auth/simple-auth-server/static/main.js:1
↓ 25 callersMethodstop
Sends stop signal through contained server handle.
shutdown-server/src/main.rs:61
↓ 19 callersMethodrender
( &self, tmpl: &str, ctx: T, )
templating/minijinja/src/main.rs:20
↓ 11 callersMethodwait
(&self, d: u64)
json/jsonrpc/src/main.rs:111
↓ 9 callersMethodas_str
(&self)
forms/form/src/main.rs:91
↓ 7 callersMethodcall
(&self, req: ServiceRequest)
middleware/various/src/simple.rs:51
↓ 7 callersFunctiondelete
( pool: web::Data<SqlitePool>, params: web::Path<UpdateParams>, session: Session, )
basics/todo/src/api.rs:103
↓ 7 callersMethodsend_message
Send message to all users in the room
websockets/chat/src/server.rs:93
↓ 6 callersMethoddecode
(&mut self, src: &mut BytesMut)
websockets/chat-tcp/src/codec.rs:50
↓ 6 callersMethodsend_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 callersMethodconnect
Register new session and assign unique ID to this session
websockets/chat-actorless/src/server.rs:120
↓ 5 callersFunctioncreate
( params: web::Form<CreateForm>, pool: web::Data<SqlitePool>, session: Session, )
basics/todo/src/api.rs:46
↓ 5 callersMethodhandle
( &self, myself: ActorRef<Self::Msg>, message: Self::Msg, state: &mut Self::St
websockets/echo/src/server.rs:94
↓ 5 callersMethodping
(&self)
json/jsonrpc/src/main.rs:107
↓ 5 callersMethodsend_message
Send message to all users in the room
websockets/chat-tcp/src/server.rs:79
↓ 5 callersFunctionsleep
()
tracing/mainmatter-workshop/src/routes.rs:12
↓ 4 callersMethodencode
(&mut self, msg: ChatResponse, dst: &mut BytesMut)
websockets/chat-tcp/src/codec.rs:71
↓ 3 callersFunctionfetch
(session)
protobuf/client.py:47
↓ 3 callersFunctioninit
()
tracing/mainmatter-workshop/src/logging.rs:11
↓ 3 callersMethodname
(&self)
graphql/juniper-advanced/src/schemas/user.rs:33
↓ 3 callersFunctionset_flash
(session: &Session, flash: FlashMessage)
basics/todo/src/session.rs:7
↓ 3 callersFunctionstep_x
validate data, post json to httpbin, get it back in the response body, return deserialized
json/json-validation/src/main.rs:42
↓ 2 callersMethodadd_client_to_room
(&mut self, room_name: &str, id: Option<u64>, client: Client)
websockets/chat-broker/src/server.rs:23
↓ 2 callersMethoddisconnect
Unregister connection from room map and broadcast disconnection message.
websockets/chat-actorless/src/server.rs:142
↓ 2 callersMethoddump
Prints out the value as JSON string.
json/jsonrpc/src/convention.rs:57
↓ 2 callersFunctionget_rows_as_annual_agg
(mut statement: Statement)
databases/sqlite/src/db.rs:75
↓ 2 callersFunctionget_rows_as_month_agg
(mut statement: Statement)
databases/sqlite/src/db.rs:114
↓ 2 callersMethodid
(&self)
graphql/juniper-advanced/src/schemas/user.rs:30
↓ 2 callersFunctioninit_standard_logger
Initializes standard tracing subscriber.
examples-common/src/lib.rs:5
↓ 2 callersFunctioninitialize_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 callersFunctioninitialize_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 callersMethodjoin_room
(&mut self, room_name: &str, ctx: &mut ws::WebsocketContext<Self>)
websockets/chat-broker/src/session.rs:18
↓ 2 callersMethodjoin_room
Join room, send disconnect message to old room send join message to new room.
websockets/chat-actorless/src/server.rs:170
↓ 2 callersMethodlist_rooms
Returns list of created room names.
websockets/chat-actorless/src/server.rs:165
↓ 2 callersFunctionload_certified_key
()
https-tls/hot-reload/src/main.rs:80
↓ 2 callersFunctionprint_status
(accepting_connections)
server-sent-events/drain.js:37
↓ 2 callersFunctionquery
Diesel query
auth/simple-auth-server/src/auth_handler.rs:65
↓ 2 callersFunctionquery_characters
( after: Option<String>, before: Option<String>, first: Option<i32>, last: Option<i32>, ch
graphql/async-graphql/src/star_wars/model.rs:184
↓ 2 callersMethodsend_chat_message
(&mut self, room_name: &str, msg: &str, _src: u64)
websockets/chat-broker/src/server.rs:48
↓ 2 callersMethodsend_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 callersFunctionsuccess
simple handle
auth/casbin/src/main.rs:7
↓ 1 callersMethodallow_query
Mutates leaky bucket for accepted request.
middleware/rate-limit/src/rate_limit.rs:118
↓ 1 callersMethodbroadcast
Broadcasts `msg` to all clients.
server-sent-events/src/broadcast.rs:78
↓ 1 callersFunctionbytes_to_payload
(buf: web::Bytes)
middleware/encrypted-payloads/src/main.rs:159
↓ 1 callersFunctionbytes_to_payload
(buf: web::Bytes)
middleware/various/src/read_request_body.rs:71
↓ 1 callersMethodcall
(&self, req: ServiceRequest)
middleware/http-response/src/simple.rs:65
↓ 1 callersFunctionclear_flash
(session: &Session)
basics/todo/src/session.rs:15
↓ 1 callersFunctioncreate_app
()
guards/src/main.rs:51
↓ 1 callersFunctioncreate_bank
( pool: &mysql::Pool, bank_name: String, country: String, )
databases/mysql/src/persistence.rs:41
↓ 1 callersFunctioncreate_branch
( pool: &mysql::Pool, branch_name: String, location: String, )
databases/mysql/src/persistence.rs:66
↓ 1 callersFunctioncreate_customer
( pool: &mysql::Pool, customer_name: String, branch_name: String, )
databases/mysql/src/persistence.rs:122
↓ 1 callersFunctioncreate_invitation
( eml: String, pool: web::Data<Pool>, )
auth/simple-auth-server/src/invitation_handler.rs:25
↓ 1 callersFunctioncreate_schema
()
graphql/juniper-advanced/src/schemas/root.rs:163
↓ 1 callersFunctioncreate_schema
()
graphql/juniper/src/schema.rs:59
↓ 1 callersFunctioncreate_task
(todo: String, pool: &SqlitePool)
basics/todo/src/db.rs:16
↓ 1 callersFunctioncreate_teller
( pool: &mysql::Pool, teller_name: String, branch_name: String, )
databases/mysql/src/persistence.rs:94
↓ 1 callersFunctioncreate_username_index
Creates an index on the "username" field to force the values to be unique.
databases/mongodb/src/main.rs:40
↓ 1 callersMethoddelete_file
Attempts to deletes object from S3. Returns true if successful.
forms/multipart-s3/src/client.rs:111
↓ 1 callersFunctiondelete_task
(id: i32, pool: &SqlitePool)
basics/todo/src/db.rs:31
↓ 1 callersFunctiondispatch
()
websockets/chat-broker/client.py:28
↓ 1 callersFunctiondispatch
()
websockets/echo/websocket-client.py:24
↓ 1 callersFunctiondispatch
(ws: aiohttp.ClientWebSocketResponse)
websockets/chat/client.py:15
↓ 1 callersFunctiondispatch
()
websockets/chat-tcp/client.py:28
↓ 1 callersFunctiondo_something_random
randomly returns either () or one of the 4 CustomError variants
basics/error-handling/src/main.rs:88
↓ 1 callersFunctionerror_handlers
Custom error handlers, to return HTML responses when an error occurs.
templating/tera/src/main.rs:55
↓ 1 callersFunctionerror_handlers
Custom error handlers, to return HTML responses when an error occurs.
templating/fluent/src/main.rs:92
↓ 1 callersFunctionerror_handlers
Custom error handlers, to return HTML responses when an error occurs.
templating/tinytemplate/src/main.rs:60
↓ 1 callersFunctionerror_handlers
Custom error handlers, to return HTML responses when an error occurs.
templating/handlebars/src/main.rs:71
↓ 1 callersMethodfetch_file
(&self, key: &str)
forms/multipart-s3/src/client.rs:34
↓ 1 callersFunctionfib_recursive
(n: u64)
cache/redis/src/main.rs:17
↓ 1 callersFunctionfind_item_by_id
/// Run query using Diesel to find item by uid and return it.
databases/diesel-async/src/actions.rs:10
↓ 1 callersFunctionfind_user_by_uid
Run query using Diesel to find user by uid and return it.
databases/diesel/src/actions.rs:9
↓ 1 callersFunctiongen_tls_cert
(user_domain: &str, contact_email: &str)
https-tls/acme-letsencrypt/src/main.rs:14
↓ 1 callersFunctionget_all_tasks
(pool: &SqlitePool)
basics/todo/src/db.rs:12
↓ 1 callersFunctionget_bank_data
(pool: &mysql::Pool)
databases/mysql/src/persistence.rs:150
↓ 1 callersFunctionget_branch_data
(pool: &mysql::Pool)
databases/mysql/src/persistence.rs:158
↓ 1 callersFunctionget_coldest_months
(conn: Connection)
databases/sqlite/src/db.rs:100
↓ 1 callersFunctionget_coldest_years
(conn: Connection)
databases/sqlite/src/db.rs:61
↓ 1 callersFunctionget_conn_builder
( db_user: String, db_password: String, db_host: String, db_port: u16, db_name: String, )
databases/mysql/src/main.rs:9
↓ 1 callersFunctionget_customer_data
(pool: &mysql::Pool)
databases/mysql/src/persistence.rs:174
↓ 1 callersFunctionget_db_pool
()
graphql/juniper-advanced/src/db.rs:8
↓ 1 callersFunctionget_error_response
Generic error handler.
templating/tera/src/main.rs:69
↓ 1 callersFunctionget_error_response
Generic error handler.
templating/minijinja/src/main.rs:128
↓ 1 callersFunctionget_error_response
Generic error handler.
templating/fluent/src/main.rs:110
↓ 1 callersFunctionget_error_response
Generic error handler.
templating/tinytemplate/src/main.rs:74
↓ 1 callersFunctionget_error_response
Generic error handler.
templating/handlebars/src/main.rs:85
↓ 1 callersFunctionget_flash
(session: &Session)
basics/todo/src/session.rs:11
↓ 1 callersFunctionget_hottest_months
(conn: Connection)
databases/sqlite/src/db.rs:86
↓ 1 callersFunctionget_hottest_years
(conn: Connection)
databases/sqlite/src/db.rs:47
↓ 1 callersFunctionget_teller_data
(pool: &mysql::Pool)
databases/mysql/src/persistence.rs:166
↓ 1 callersFunctiongo
(loop)
protobuf/client.py:59
↓ 1 callersMethodhandle_hb
( &self, state: &mut (Instant, actix_ws::Session), myself: &ActorRef<WsMessage>, )
websockets/echo/src/server.rs:23
↓ 1 callersFunctionhandle_post_1
Simple handle POST request
forms/form/src/main.rs:45
↓ 1 callersFunctionhandle_post_2
State and POST Params
forms/form/src/main.rs:52
↓ 1 callersFunctionhandle_post_3
Request and POST Params
forms/form/src/main.rs:63
↓ 1 callersMethodhandle_ws_msg
( &self, msg: AggregatedMessage, state: &mut (Instant, actix_ws::Session), mys
websockets/echo/src/server.rs:43
↓ 1 callersFunctionhash_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