Expand description
The low level server side API
Note that while using this API directly is fine, the standard way
to provide data is to just register a crate::net_protocol
protocol
handler with an iroh::Endpoint
.
Structs§
- Counting
Reader - Event
Sender - A sender for provider events.
- Progress
Reader - Progress
Writer - Wrapper for a
quinn::SendStream
with additional per request information. - Stream
Context - Transfer
Stats - Statistics about a successful or failed transfer.
Enums§
- Event
- Provider progress events, to keep track of what the provider is doing.
Traits§
- Lazy
Event - Helper to lazyly create an
Event
, in the case that the event creation is expensive and we want to avoid it if the progress sender is disabled.
Functions§
- handle_
connection - Handle a single connection.
- handle_
get - Handle a single get request.
- handle_
get_ many - Handle a single get request.
- handle_
observe - Handle a single push request.
- handle_
push - Handle a single push request.
- read_
request - Read the request from the getter.