Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mimir-IM/mimir
/ functions
Functions
338 in github.com/Mimir-IM/mimir
⨍
Functions
338
◇
Types & classes
41
Function
build_header_all_known_types_roundtrip
()
src/peer/protocol.rs:614
Function
build_header_encodes_type_and_size
()
src/peer/protocol.rs:591
Function
build_header_zero_size
()
src/peer/protocol.rs:607
Function
build_ping_frame
()
src/peer/connection.rs:957
Function
build_request_frame_empty_payload
()
src/mediator/protocol.rs:248
Function
build_request_frame_layout
()
src/mediator/protocol.rs:234
Function
cache_excludes_expired_entries
()
src/peer/resolver.rs:665
Function
cache_is_empty_initially
()
src/peer/resolver.rs:642
Function
cache_returns_inserted_key
()
src/peer/resolver.rs:648
Function
cache_sorted_by_priority_descending
()
src/peer/resolver.rs:692
Method
change_member_status
(&self, mediator_pubkey: Vec<u8>, chat_id: i64, user_pubkey: Vec<u8>, new_permissions: u8)
src/mediator/mod.rs:166
Method
change_member_status
(&self, chat_id: i64, user_pubkey: &[u8], new_permissions: u8)
src/mediator/client.rs:380
Method
check_connections
Probe all live mediator connections by sending a ping. Call this when Yggdrasil connectivity is restored (e.g. from `onConnectivityChanged(true)`) to
src/mediator/mod.rs:89
Method
check_connections
Probe all live mediator connections by sending a ping. Call this when Yggdrasil connectivity is restored after a drop. Dead sessions are detected qui
src/mediator/manager.rs:250
Method
connect
Dial `mediator_pubkey` on `port`, authenticate, and spawn background tasks. Returns the ready-to-use client or an error.
src/mediator/client.rs:64
Method
connect_to_mediator
Dial `mediator_pubkey` and authenticate. Returns immediately (the actual connection happens asynchronously); the `on_connected` callback fires when a
src/mediator/mod.rs:62
Method
connect_to_peer
Open an outbound connection to `pubkey`. Returns immediately; `on_peer_connected` fires when mutual auth completes. No-op if the peer is already con
src/peer/mod.rs:564
Method
create_chat
Create a new group chat. Includes proof-of-work (~1–5 seconds CPU). Returns the new chat ID assigned by the mediator.
src/mediator/mod.rs:102
Method
create_chat
`CMD_CREATE_CHAT` — includes proof-of-work (may take a few seconds).
src/mediator/client.rs:172
Function
data_recv_task
Runs in its own tokio task. Reads file frames from the remote peer's send-data stream indefinitely and fires callbacks for each one. For FILE_RESPON
src/peer/data_stream.rs:61
Function
decrypt_truncated_ciphertext_fails
()
src/crypto.rs:272
Function
decrypt_with_wrong_key_fails
()
src/crypto.rs:264
Method
delete_chat
(&self, mediator_pubkey: Vec<u8>, chat_id: i64)
src/mediator/mod.rs:116
Method
delete_chat
(&self, chat_id: i64)
src/mediator/client.rs:204
Method
delete_message
(&self, mediator_pubkey: Vec<u8>, chat_id: i64, guid: i64)
src/mediator/mod.rs:202
Method
delete_message
(&self, chat_id: i64, guid: i64)
src/mediator/client.rs:306
Method
delete_user
(&self, mediator_pubkey: Vec<u8>, chat_id: i64, user_pubkey: Vec<u8>)
src/mediator/mod.rs:147
Method
delete_user
(&self, chat_id: i64, user_pubkey: &[u8])
src/mediator/client.rs:232
Method
disconnect_peer
Close the connection to `pubkey` (if any).
src/peer/mod.rs:682
Method
download_chunk
Download a chunk of file data. Returns `(chunk_bytes, offset, total_size)`.
src/files/client.rs:188
Method
download_file
Download a file from the server and decrypt it to `dest_path`.
src/files/mod.rs:103
Method
drop
(&mut self)
src/files/client.rs:40
Function
ecies_output_is_ephpub_nonce_ciphertext
()
src/crypto.rs:319
Function
ecies_roundtrip
()
src/crypto.rs:293
Function
ecies_wrong_seed_fails
()
src/crypto.rs:306
Function
encrypt_decrypt_roundtrip
()
src/crypto.rs:253
Function
encrypt_message_output_is_nonce_plus_ciphertext
()
src/crypto.rs:280
Method
ephemeral_key
The 32-byte ephemeral seed used for the Yggdrasil node. The app can persist this and pass it back on next start to keep the same routing address acros
src/peer/mod.rs:484
Method
error_string
Extract the error string from a STATUS_ERR payload (`[len:2 BE][utf8...]`).
src/mediator/protocol.rs:158
Function
error_string_from_ok_status_is_empty
()
src/mediator/protocol.rs:257
Function
error_string_parses_correctly
()
src/mediator/protocol.rs:269
Function
error_string_short_payload_is_empty
()
src/mediator/protocol.rs:263
Method
file_info
Query file metadata from the server.
src/files/mod.rs:134
Method
file_info
Query file metadata. Returns `(total_size, message_guid)`.
src/files/client.rs:152
Function
generate_shared_key_is_32_bytes
()
src/crypto.rs:237
Function
generate_shared_key_produces_different_keys
()
src/crypto.rs:243
Method
get_last_message_id
(&self, mediator_pubkey: Vec<u8>, chat_id: i64)
src/mediator/mod.rs:210
Method
get_last_message_id
(&self, chat_id: i64)
src/mediator/client.rs:315
Method
get_members
(&self, mediator_pubkey: Vec<u8>, chat_id: i64)
src/mediator/mod.rs:263
Method
get_members
(&self, chat_id: i64)
src/mediator/client.rs:372
Method
get_members_info
(&self, mediator_pubkey: Vec<u8>, chat_id: i64, since_timestamp: i64)
src/mediator/mod.rs:255
Method
get_members_info
(&self, chat_id: i64, since_timestamp: i64)
src/mediator/client.rs:363
Method
get_messages_since
(&self, mediator_pubkey: Vec<u8>, chat_id: i64, since_id: i64, limit: u32)
src/mediator/mod.rs:218
Method
get_messages_since
(&self, chat_id: i64, since_id: i64, limit: u32)
src/mediator/client.rs:324
Method
get_paths_json
Yggdrasil routing-path diagnostics, JSON-encoded.
src/peer/mod.rs:718
Method
get_peers_json
Yggdrasil peer-connection diagnostics, JSON-encoded.
src/peer/mod.rs:713
Method
get_str
(&self, tag: u8)
src/tlv.rs:179
Method
get_tree_json
Yggdrasil spanning-tree diagnostics, JSON-encoded.
src/peer/mod.rs:723
Method
get_user_chats
(&self)
src/mediator/client.rs:244
Function
handle_incoming
Dispatch a fully-parsed incoming frame. `peer_flags` is re-queried after contact request/response events so that permission changes take effect immed
src/peer/connection.rs:528
Function
handle_outgoing
( cmd: OutgoingCmd, write_tx: &mpsc::UnboundedSender<Vec<u8>>, data_write_tx: &mpsc::UnboundedSend
src/peer/connection.rs:683
Method
hangup_call
Hang up an active or ringing call.
src/peer/mod.rs:701
Method
idle_timeout_loop
Closes the connection after [`IDLE_TIMEOUT`] of no activity.
src/files/client.rs:420
Method
leave_chat
(&self, mediator_pubkey: Vec<u8>, chat_id: i64)
src/mediator/mod.rs:155
Method
leave_chat
(&self, chat_id: i64)
src/mediator/client.rs:269
Function
main
()
build.rs:1
Function
main
()
uniffi-bindgen.rs:1
Method
new
( peer_node: Arc<PeerNode>, files_port: u16, event_listener: Box<dyn FilesEventListene
src/files/mod.rs:44
Method
new
Create and start the node. `signing_key` – 32-byte Ed25519 seed (private key). `ygg_peers` – Yggdrasil bootstrap peer URIs. `peer_port`
src/peer/mod.rs:239
Method
new
Create a new Resolver. `tracker_strs` – Tracker addresses in `"<hex32_pubkey>:<port>"` format.
src/peer/resolver.rs:102
Method
new
(uris: Vec<String>)
src/peer/ygg_selector.rs:69
Method
new
Create a new `MediatorNode` that shares the Yggdrasil node from `peer_node`. `peer_node` – A running `PeerNode`; its Ygg node and runtime are
src/mediator/mod.rs:39
Method
new
(node: Arc<AsyncNode>, sk: Arc<SigningKey>, port: u16, listener: Arc<dyn MediatorEventListener>)
src/mediator/manager.rs:41
Method
opt_u64
(&self, tag: u8)
src/tlv.rs:189
Function
parse_get_addrs_bad_signature_is_skipped
()
src/peer/resolver.rs:604
Function
parse_get_addrs_count_mismatch_is_error
()
src/peer/resolver.rs:618
Function
parse_get_addrs_empty_payload
()
src/peer/resolver.rs:558
Function
parse_get_addrs_multiple_records
()
src/peer/resolver.rs:590
Function
parse_get_addrs_valid_single_record
()
src/peer/resolver.rs:574
Function
parse_get_addrs_zero_count
()
src/peer/resolver.rs:565
Function
parse_tracker_bad_hex
()
src/peer/resolver.rs:537
Function
parse_tracker_bad_port
()
src/peer/resolver.rs:543
Function
parse_tracker_missing_colon
()
src/peer/resolver.rs:550
Function
parse_tracker_valid
()
src/peer/resolver.rs:521
Function
parse_tracker_wrong_key_length
()
src/peer/resolver.rs:530
Method
ping_loop
(&self, listener: &dyn MediatorEventListener)
src/mediator/client.rs:667
Method
reader_loop
(&self)
src/files/client.rs:380
Method
reader_loop
(&self, listener: &dyn MediatorEventListener)
src/mediator/client.rs:515
Method
request_file
Request a file from a connected peer. `name` is the random filename from the message metadata. `hash` is the SHA-256 hex hash for verification. The p
src/peer/mod.rs:672
Method
respond_to_invite
(&self, mediator_pubkey: Vec<u8>, chat_id: i64, invite_id: i64, accept: bool)
src/mediator/mod.rs:236
Method
respond_to_invite
(&self, _chat_id: i64, invite_id: i64, accept: bool)
src/mediator/client.rs:344
Method
retry_peers_now
Retry to connect to peers
src/peer/mod.rs:728
Function
run_inbound
Drive an **inbound** connection to completion. Returns the peer's pubkey and an outgoing-command sender on success.
src/peer/connection.rs:103
Method
send_call_packet
Send a raw call-packet to `pubkey` during an active call.
src/peer/mod.rs:707
Method
send_contact_request
Send a contact (friend) request to `pubkey` with an introductory message.
src/peer/mod.rs:655
Method
send_contact_response
Send a contact response (accept/reject) to `pubkey`.
src/peer/mod.rs:661
Method
send_group_message
Send an encrypted message blob. Returns the server-assigned message ID.
src/mediator/mod.rs:193
Method
send_invite
(&self, mediator_pubkey: Vec<u8>, chat_id: i64, recipient_pubkey: Vec<u8>, encrypted_data: Vec<u8>)
src/mediator/mod.rs:228
Method
send_invite
(&self, chat_id: i64, recipient: &[u8], encrypted_data: &[u8])
src/mediator/client.rs:334
Method
send_message
Queue a message for delivery to the peer identified by `pubkey`. The connection must already be established (`on_peer_connected` fired).
src/peer/mod.rs:545
← previous
next →
201–300 of 338, ranked by callers