Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MOZGIII/xwt
/ functions
Functions
337 in github.com/MOZGIII/xwt
⨍
Functions
337
◇
Types & classes
182
↓ 29 callers
Function
run
( endpoint: Endpoint, url: &str, )
crates/xwt-tests/src/tests/chunks.rs:30
↓ 23 callers
Method
finish
(self)
crates/xwt-erased/src/stream.rs:116
↓ 19 callers
Method
as_ref
Return the reference to this signature.
crates/xwt-cert-fingerprint/src/lib.rs:122
↓ 16 callers
Function
connect
( endpoint: &Endpoint, url: &str, )
crates/xwt-tests/src/utils.rs:3
↓ 16 callers
Method
read
(&'a mut self, buf: &'a mut [u8])
crates/xwt-erased/src/stream.rs:61
↓ 16 callers
Function
setup
()
crates/xwt-web/tests/test.rs:13
↓ 16 callers
Function
test_endpoint
()
crates/xwt-web/tests/test.rs:20
↓ 13 callers
Function
setup
()
crates/xwt-wtransport/tests/test.rs:12
↓ 13 callers
Function
test_endpoint
()
crates/xwt-wtransport/tests/test.rs:22
↓ 12 callers
Method
write
(&'a mut self, buf: &'a [u8])
crates/xwt-erased/src/stream.rs:95
↓ 10 callers
Function
open_bi
( session: &Session, )
crates/xwt-tests/src/utils.rs:43
↓ 10 callers
Function
read
( reader: &web_sys::ReadableStreamDefaultReader, )
crates/web-sys-stream-utils/src/lib.rs:32
↓ 8 callers
Method
accept_bi
(&self)
crates/xwt-erased/src/session/stream.rs:32
↓ 8 callers
Function
write
( writer: &web_sys::WritableStreamDefaultWriter, buf: T, )
crates/web-sys-stream-utils/src/lib.rs:82
↓ 7 callers
Method
into_inner
(self)
crates/xwt-erased/src/error.rs:9
↓ 6 callers
Method
open_bi
(&self)
crates/xwt-erased/src/session/stream.rs:14
↓ 6 callers
Method
transport_ref
Obtain a transport ref.
crates/xwt-web/src/lib.rs:124
↓ 5 callers
Method
connect
(&self, url: &str)
crates/xwt-erased/src/endpoint/client.rs:22
↓ 5 callers
Function
from_http
Convert the HTTP3 code value to WebTransport code.
crates/xwt-wtransport/src/error_codes.rs:28
↓ 5 callers
Method
send_datagram
(&self, payload: D)
crates/xwt-erased/src/session/datagram.rs:40
↓ 5 callers
Method
wait_bi
(self)
crates/xwt-erased/src/session/stream.rs:52
↓ 5 callers
Method
wait_connect
(self)
crates/xwt-erased/src/endpoint/client.rs:35
↓ 4 callers
Method
accept
(&self)
crates/xwt-erased/src/endpoint/server.rs:22
↓ 4 callers
Method
is_done
Returns `true` if `done` field exists and set to `true`.
crates/web-wt-sys/src/streams/readable_stream_read_result.rs:34
↓ 4 callers
Method
is_error_code
(&self, expected_error_code: xwt_dyn::stream::ErrorCode)
crates/xwt-erased/src/stream.rs:41
↓ 4 callers
Method
receive_datagram
(&self)
crates/xwt-erased/src/session/datagram.rs:23
↓ 3 callers
Function
client
()
crates/xwt-erased/tests/web.rs:8
↓ 3 callers
Method
ok
(self)
crates/xwt-wtransport/src/lib.rs:57
↓ 3 callers
Method
ok
(self)
crates/xwt-erased/src/endpoint/server.rs:48
↓ 3 callers
Function
server
()
crates/xwt-erased/tests/native.rs:19
↓ 3 callers
Method
source
(&self)
crates/xwt-erased/src/error.rs:31
↓ 3 callers
Method
to_js
Creates a JavaScript value from this value.
crates/xwt-web/src/options.rs:91
↓ 3 callers
Method
wait_accept
(self)
crates/xwt-erased/src/endpoint/server.rs:35
↓ 3 callers
Function
webtransport_code_to_http_code
Convert the WebTransport error code into the HTTP3 error code. We need this because wtransport does not convert error codes at all.
crates/xwt-test-server/src/routes/close.rs:146
↓ 2 callers
Method
aborted
(self)
crates/xwt-erased/src/stream.rs:75
↓ 2 callers
Method
accept_uni
(&self)
crates/xwt-erased/src/session/stream.rs:41
↓ 2 callers
Method
as_error_code
(&self)
crates/xwt-erased/src/stream.rs:36
↓ 2 callers
Method
as_ref
(&self)
crates/xwt-wtransport/src/lib.rs:313
↓ 2 callers
Method
close
(self, status: u16)
crates/xwt-wtransport/src/lib.rs:61
↓ 2 callers
Method
close
(self, status: u16)
crates/xwt-erased/src/endpoint/server.rs:57
↓ 2 callers
Function
get_reader_byob
( readable_stream: impl Into<web_sys::ReadableStream>, )
crates/web-sys-stream-utils/src/lib.rs:16
↓ 2 callers
Function
open_uni
( session: &Session, )
crates/xwt-tests/src/utils.rs:58
↓ 2 callers
Method
open_uni
(&self)
crates/xwt-erased/src/session/stream.rs:23
↓ 2 callers
Method
read
(&mut self, buf: &mut [u8])
crates/xwt-web/src/lib.rs:508
↓ 2 callers
Function
read_byob
( reader: &web_sys::ReadableStreamByobReader, buf: js_sys::Uint8Array, )
crates/web-sys-stream-utils/src/lib.rs:50
↓ 2 callers
Method
receive_with
Receive the datagram and handle the buffer with the given function. Cloning the buffer in the `f` will result in the undefined behaviour, because it
crates/xwt-web/src/lib.rs:593
↓ 2 callers
Method
run
Run the client.
examples/microapp/client-shared/src/lib.rs:27
↓ 2 callers
Function
serve_stream
( stream: (wtransport::SendStream, wtransport::RecvStream), )
crates/xwt-test-server/src/routes/echo.rs:39
↓ 2 callers
Function
to_http
Convert the WebTransport code value to HTTP3 code.
crates/xwt-wtransport/src/error_codes.rs:12
↓ 2 callers
Method
wait_uni
(self)
crates/xwt-erased/src/session/stream.rs:63
↓ 2 callers
Function
wrap_bi_stream
Take a bidi stream and wrap a reader and writer for it.
crates/xwt-web/src/lib.rs:285
↓ 2 callers
Function
wrap_recv_stream
Open a reader for the given stream and create a [`RecvStream`].
crates/xwt-web/src/lib.rs:252
↓ 2 callers
Function
wrap_send_stream
Open a writer for the given stream and create a [`SendStream`].
crates/xwt-web/src/lib.rs:270
↓ 1 callers
Method
accept
(&self)
crates/xwt-wtransport/src/lib.rs:36
↓ 1 callers
Method
as_ref
(&self)
crates/xwt-erased/src/session/datagram.rs:17
↓ 1 callers
Method
chat_inbound_loop
Print the chat messages we get from the server on screen.
examples/microapp/client-shared/src/lib.rs:81
↓ 1 callers
Method
chat_inbound_loop
Handle the inbound chat messages by sending them to the chat broadcast.
examples/microapp/server-shared/src/lib.rs:65
↓ 1 callers
Method
chat_inbound_loop
Print the chat messages we get from the server on screen.
examples/microapp-erased/client-shared/src/lib.rs:72
↓ 1 callers
Method
chat_inbound_loop
Handle the inbound chat messages by sending them to the chat broadcast.
examples/microapp-erased/server-shared/src/lib.rs:52
↓ 1 callers
Method
chat_outbound_loop
Create random chat messages and sent them via to the chat stream.
examples/microapp/client-shared/src/lib.rs:61
↓ 1 callers
Method
chat_outbound_loop
Handle the broadcasted chat messages by sending them to the chat stream.
examples/microapp/server-shared/src/lib.rs:87
↓ 1 callers
Method
chat_outbound_loop
Create random chat messages and sent them via to the chat stream.
examples/microapp-erased/client-shared/src/lib.rs:52
↓ 1 callers
Method
chat_outbound_loop
Handle the broadcasted chat messages by sending them to the chat stream.
examples/microapp-erased/server-shared/src/lib.rs:74
↓ 1 callers
Function
check_for_expired_generation
(dir: &Path)
crates/xwt-test-assets-build/src/lib.rs:134
↓ 1 callers
Function
endpoint
( params: EndpointParams, )
crates/xwt-test-server/src/lib.rs:16
↓ 1 callers
Function
env_dir
(key: &str)
crates/xwt-test-assets-build/src/lib.rs:60
↓ 1 callers
Function
generate
()
crates/xwt-test-assets-build/src/lib.rs:21
↓ 1 callers
Function
get_writer
( writable_stream: web_sys::WritableStream, )
crates/web-sys-stream-utils/src/lib.rs:26
↓ 1 callers
Function
handle
Handle connecting users.
examples/microapp/server-native/src/lib.rs:46
↓ 1 callers
Function
handle
Handle connecting users.
examples/microapp-erased/server-native/src/lib.rs:46
↓ 1 callers
Method
handle
Handle the inbound connection from a client.
examples/microapp/server-shared/src/lib.rs:38
↓ 1 callers
Method
handle
Handle the inbound connection from a client.
examples/microapp-erased/server-shared/src/lib.rs:25
↓ 1 callers
Method
handle_session
( self, connection: std::sync::Arc<wtransport::Connection>, )
crates/xwt-test-server/src/handling.rs:23
↓ 1 callers
Function
handle_session_with
( handler: T, session: std::sync::Arc<wtransport::Connection>, )
crates/xwt-test-server/src/handling.rs:80
↓ 1 callers
Method
is_error_code
(&self, expected_error_code: stream::ErrorCode)
crates/xwt-core/src/stream_utils.rs:51
↓ 1 callers
Function
js_value_to_io_error
(error: wasm_bindgen::JsValue)
crates/web-sys-async-io/src/lib.rs:16
↓ 1 callers
Method
max_datagram_size
(&self)
crates/xwt-erased/src/session/datagram.rs:51
↓ 1 callers
Method
movement_loop
Create random movements and send them as datagrams.
examples/microapp/client-shared/src/lib.rs:45
↓ 1 callers
Method
movement_loop
Announce the client movements to the chat. Normally you'd update the world state and replicate it, but this is a simple example :P.
examples/microapp/server-shared/src/lib.rs:108
↓ 1 callers
Method
movement_loop
Create random movements and send them as datagrams.
examples/microapp-erased/client-shared/src/lib.rs:36
↓ 1 callers
Method
movement_loop
Announce the client movements to the chat. Normally you'd update the world state and replicate it, but this is a simple example :P.
examples/microapp-erased/server-shared/src/lib.rs:95
↓ 1 callers
Method
read
(&mut self, buf: &mut [u8])
crates/xwt-wtransport/src/lib.rs:147
↓ 1 callers
Method
read_chunk
( &mut self, max_length: usize, ordered: bool, )
crates/xwt-dyn/src/stream.rs:242
↓ 1 callers
Method
receive_datagram
(&self)
crates/xwt-wtransport/src/lib.rs:307
↓ 1 callers
Method
receive_datagram_into
(&self, buf: &mut [u8])
crates/xwt-erased/src/session/datagram.rs:32
↓ 1 callers
Method
run
Run the client.
examples/microapp-erased/client-shared/src/lib.rs:18
↓ 1 callers
Function
save
(dir: impl AsRef<Path>, files: Vec<(&'static str, AnyBytes)>)
crates/xwt-test-assets-build/src/lib.rs:70
↓ 1 callers
Function
serve_endpoint
( endpoint: wtransport::Endpoint<wtransport::endpoint::endpoint_side::Server>, )
crates/xwt-test-server/src/lib.rs:51
↓ 1 callers
Function
serve_incoming_session
( incoming_session: wtransport::endpoint::IncomingSession, )
crates/xwt-test-server/src/lib.rs:67
↓ 1 callers
Function
serve_opening_bi_stream
( opening_bi_stream: wtransport::stream::OpeningBiStream, )
crates/xwt-test-server/src/routes/echo_open_bi.rs:41
↓ 1 callers
Method
set_algorithm
Set the algorithm.
crates/web-wt-sys/src/webtransport/web_transport_hash.rs:24
↓ 1 callers
Method
set_value
Set the value.
crates/web-wt-sys/src/webtransport/web_transport_hash.rs:29
↓ 1 callers
Function
setup
()
crates/web-wt-sys/tests/webtransport.rs:10
↓ 1 callers
Function
setup_chat
Prepare the HTML element to write the chat text to.
examples/microapp/client-web/src/lib.rs:43
↓ 1 callers
Function
setup_chat
Prepare the HTML element to write the chat text to.
examples/microapp-erased/client-web/src/lib.rs:42
↓ 1 callers
Method
spawn_handle_session
( self, joinset: &mut tokio::task::JoinSet<()>, session: std::sync::Arc<wtransport::Co
crates/xwt-test-server/src/handling.rs:43
↓ 1 callers
Method
write_chunk
( &'a mut self, buf: &'a [u8], )
crates/xwt-dyn/src/stream.rs:277
Method
abort
(self, error_code: xwt_core::stream::ErrorCode)
crates/xwt-wtransport/src/lib.rs:162
Method
abort
(self, error_code: xwt_core::stream::ErrorCode)
crates/xwt-anchor/src/impls/xwt_core/streams.rs:24
Method
abort
(self, error_code: xwt_dyn::stream::ErrorCode)
crates/xwt-erased/src/stream.rs:68
next →
1–100 of 337, ranked by callers