Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/conradludgate/arc-discharge
/ functions
Functions
197 in github.com/conradludgate/arc-discharge
⨍
Functions
197
◇
Types & classes
45
Method
bitor
(self, other: Ready)
src/io/ready.rs:153
Method
bitor_assign
(&mut self, other: Ready)
src/io/ready.rs:159
Method
connect
Connects the UDP socket setting the default destination for send() and limiting packets that are read via recv from the address specified in `addr`.
src/net/udp.rs:336
Method
connect
Opens a TCP connection to a remote host. `addr` is an address of the remote host. Anything which implements the [`ToSocketAddrs`] trait can be suppli
src/net/tcp/stream.rs:106
Method
connect_addr
Establishes a connection to the specified `addr`.
src/net/tcp/stream.rs:127
Method
connect_mio
(sys: mio::net::TcpStream)
src/net/tcp/stream.rs:132
Method
decode
(&mut self, src: &mut BytesMut)
examples/http-server.rs:159
Method
default
()
src/linked_list.rs:70
Method
default
()
src/io/mod.rs:107
Method
deref
(&self)
src/io/poll_evented.rs:186
Method
drop
(&mut self)
src/io/registration.rs:205
Method
drop
(&mut self)
src/io/poll_evented.rs:198
Method
encode
(&mut self, item: Response<String>, dst: &mut BytesMut)
examples/http-server.rs:104
Method
fmt
(&self, fmt: &mut std::fmt::Formatter<'_>)
src/join_handle.rs:34
Method
fmt
(&self, fmt: &mut fmt::Formatter<'_>)
src/bits.rs:54
Method
fmt
(&self, fmt: &mut fmt::Formatter<'_>)
src/io/ready.rs:181
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/io/poll_evented.rs:192
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/net/udp.rs:1062
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/net/tcp/stream.rs:812
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/net/tcp/listener.rs:73
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
examples/http-server.rs:274
Method
from_interest
(interest: Interest)
src/io/ready.rs:125
Method
from_link
(link: NonNull<AtomicLink>)
src/linked_list.rs:42
Method
from_mio
Must remain crate-private to avoid adding a public dependency on Mio.
src/io/ready.rs:36
Method
from_std
(socket: net::UdpSocket)
src/net/udp.rs:218
Method
from_std
(stream: std::net::TcpStream)
src/net/tcp/stream.rs:193
Method
from_usize
Creates a `Ready` instance using the given `usize` representation. The `usize` representation must have been obtained from a call to `Readiness::as_u
src/io/ready.rs:111
Method
get_link
(self: *const Self)
src/task.rs:181
Method
get_link
(&self, value: *const dyn DynTask)
src/linked_list.rs:153
Method
get_value
(&self, link: NonNull<FatLink<dyn DynTask>>)
src/linked_list.rs:147
Method
least_significant
Value is packed in the `width` least-significant bits.
src/bits.rs:11
Method
link_ops
(&self)
src/linked_list.rs:158
Method
link_ops_mut
(&mut self)
src/linked_list.rs:162
Function
list
()
src/linked_list.rs:208
Method
local_addr
Returns the local address that this socket is bound to. # Example ```no_run use tokio::net::UdpSocket; # use std::{io, net::SocketAddr}; # #[tokio:
src/net/udp.rs:286
Method
local_addr
Returns the local address that this stream is bound to. # Examples ```no_run use tokio::net::TcpStream; # async fn dox() -> Result<(), Box<dyn std:
src/net/tcp/stream.rs:213
Method
local_addr
(&self)
src/net/tcp/listener.rs:59
Function
lookup_host
Performs a DNS resolution. The returned iterator may not actually yield any values depending on the outcome of any resolution performed. This API is
src/net/lookup_host.rs:31
Function
main
()
examples/http-server.rs:28
Method
new
Make a new multi-threaded runtime with `n` background threads
src/lib.rs:46
Method
new
(cap: usize)
src/sync_slot_map.rs:12
Method
new
(fut: F)
src/join_handle.rs:54
Method
new
(handle: Arc<MTRuntime>, fut: F)
src/task.rs:190
Method
new
()
src/linked_list.rs:22
Method
new
()
src/io/mod.rs:50
Method
new
(io: E)
src/io/poll_evented.rs:71
Method
new
(socket: mio::net::UdpSocket)
src/net/udp.rs:170
Method
new
(connected: mio::net::TcpStream)
src/net/tcp/stream.rs:150
Method
new
(listener: mio::net::TcpListener)
src/net/tcp/listener.rs:54
Method
new_with_interest
(io: E, interest: Interest)
src/io/poll_evented.rs:76
Method
new_with_interest_and_handle
( io: &mut impl Source, interest: Interest, handle: Arc<super::Handle>, )
src/io/registration.rs:63
Method
new_with_interest_and_handle
( mut io: E, interest: Interest, handle: Arc<Handle>, )
src/io/poll_evented.rs:85
Method
next
(&self, ptr: Self::LinkPtr)
src/linked_list.rs:91
Method
peer_addr
Returns the socket address of the remote peer this socket was connected to. # Example ``` use tokio::net::UdpSocket; # use std::{io, net::SocketAdd
src/net/udp.rs:308
Method
peer_addr
Returns the remote address that this stream is connected to. # Examples ```no_run use tokio::net::TcpStream; # async fn dox() -> Result<(), Box<dyn
src/net/tcp/stream.rs:236
Method
pointer_ops
(&self)
src/linked_list.rs:166
Method
poll
(mut self: Pin<&mut Self>, cx: &mut Context<'_>)
src/join_handle.rs:62
Method
poll_close
(self: Pin<&mut Self>, _: &mut Context<'_>)
src/net/tcp/stream.rs:805
Method
poll_flush
(self: Pin<&mut Self>, _: &mut Context<'_>)
src/net/tcp/stream.rs:800
Method
poll_peek
Attempts to receive data on the socket, without removing that data from the queue, registering the current task for wakeup if data is not yet availabl
src/net/tcp/stream.rs:282
Method
poll_peek_from
Receives data from the socket, without removing it from the input queue. On success, returns the number of bytes read. # Notes Note that on multiple
src/net/udp.rs:1038
Method
poll_read
( &'a self, cx: &mut Context<'_>, buf: &mut [u8], )
src/io/poll_evented.rs:112
Method
poll_read_ready
Uses the poll path, requiring the caller to ensure mutual exclusion for correctness. Only the last task to call this function is notified.
src/io/registration.rs:103
Method
poll_readiness
Polls for readiness events in a given direction. These are to support `AsyncRead` and `AsyncWrite` polling methods, which cannot use the `async fn` v
src/io/mod.rs:384
Method
poll_recv
Attempts to receive a single datagram message on the socket from the remote address to which it is `connect`ed. The [`connect`] method will connect t
src/net/udp.rs:615
Method
poll_recv_from
Attempts to receive a single datagram on the socket. Note that on multiple calls to a `poll_*` method in the recv direction, only the `Waker` from th
src/net/udp.rs:869
Method
poll_recv_ready
Polls for read/receive readiness. If the udp stream is not currently ready for receiving, this method will store a clone of the `Waker` from the prov
src/net/udp.rs:544
Method
poll_send
Attempts to send data on the socket to the remote address to which it was previously `connect`ed. The [`connect`] method will connect this socket to
src/net/udp.rs:455
Method
poll_send_ready
Polls for write/send readiness. If the udp stream is not currently ready for sending, this method will store a clone of the `Waker` from the provided
src/net/udp.rs:384
Method
poll_send_to
Attempts to send data on the socket to a given address. Note that on multiple calls to a `poll_*` method in the send direction, only the `Waker` from
src/net/udp.rs:742
Method
poll_write
( &'a self, cx: &mut Context<'_>, buf: &[u8], )
src/io/poll_evented.rs:134
Method
poll_write_ready
Uses the poll path, requiring the caller to ensure mutual exclusion for correctness. Only the last task to call this function is notified.
src/io/registration.rs:109
Method
poll_write_vectored
( &'a self, cx: &mut Context<'_>, bufs: &[io::IoSlice<'_>], )
src/io/poll_evented.rs:165
Method
prev
(&self, ptr: Self::LinkPtr)
src/linked_list.rs:96
Function
push_pop
()
src/sync_slot_map.rs:109
Method
release_link
(&mut self, ptr: Self::LinkPtr)
src/linked_list.rs:84
Method
set_next
(&mut self, ptr: Self::LinkPtr, next: Option<Self::LinkPtr>)
src/linked_list.rs:100
Method
set_prev
(&mut self, ptr: Self::LinkPtr, prev: Option<Self::LinkPtr>)
src/linked_list.rs:105
Method
size_hint
(&self)
src/net/addr.rs:251
Method
sub
(self, other: Ready)
src/io/ready.rs:175
Method
thread_per_core
Make a new multi-threaded runtime with a thread per logical CPU
src/lib.rs:63
Function
timers
()
src/lib.rs:281
Method
to_link
(ptr: NonNull<Self>)
src/linked_list.rs:36
Method
try_from
Consumes stream, returning the tokio I/O object. This is equivalent to [`UdpSocket::from_std(stream)`](UdpSocket::from_std).
src/net/udp.rs:1056
Method
try_from
Consumes stream, returning the tokio I/O object. This is equivalent to [`TcpStream::from_std(stream)`](TcpStream::from_std).
src/net/tcp/stream.rs:765
Method
try_from
(stream: net::TcpListener)
src/net/tcp/listener.rs:67
Method
try_io
( &self, interest: Interest, f: impl FnOnce() -> io::Result<R>, )
src/io/registration.rs:177
Method
try_read
Tries to read data from the stream into the provided buffer, returning how many bytes were read. Receives any pending data from the socket but does n
src/net/tcp/stream.rs:394
Method
try_read_vectored
Tries to read data from the stream into the provided buffers, returning how many bytes were read. Data is copied to fill each buffer in order, with t
src/net/tcp/stream.rs:472
Method
try_recv
Tries to receive a single datagram message on the socket from the remote address to which it is connected. On success, returns the number of bytes rea
src/net/udp.rs:671
Method
try_recv_from
Tries to receive a single datagram message on the socket. On success, returns the number of bytes read and the origin. The function must be called wi
src/net/udp.rs:927
Method
try_send
Tries to send data on the socket to the remote address to which it is connected. When the socket buffer is full, `Err(io::ErrorKind::WouldBlock)` is
src/net/udp.rs:509
Method
try_send_to
Tries to send data on the socket to the given address, but if the send is blocked this will return right away. This function is usually paired with `
src/net/udp.rs:800
Method
try_write
Try to write a buffer to the stream, returning how many bytes were written. The function will attempt to write the entire contents of `buf`, but only
src/net/tcp/stream.rs:561
Method
try_write_vectored
Tries to write several buffers to the stream, returning how many bytes were written. Data is written from each buffer in order, with the final buffer
src/net/tcp/stream.rs:623
Method
wake_by_ref
(arc_self: &Arc<Self>)
src/task.rs:206
Method
write_fmt
(&mut self, args: fmt::Arguments<'_>)
examples/http-server.rs:144
← previous
101–197 of 197, ranked by callers