Enum iroh_bytes::provider::Event
source · pub enum Event {
TaggedBlobAdded {
hash: Hash,
format: BlobFormat,
tag: Tag,
},
ClientConnected {
connection_id: u64,
},
GetRequestReceived {
connection_id: u64,
request_id: u64,
token: Option<RequestToken>,
hash: Hash,
},
CustomGetRequestReceived {
connection_id: u64,
request_id: u64,
token: Option<RequestToken>,
len: usize,
},
TransferHashSeqStarted {
connection_id: u64,
request_id: u64,
num_blobs: u64,
},
TransferBlobCompleted {
connection_id: u64,
request_id: u64,
hash: Hash,
index: u64,
size: u64,
},
TransferCompleted {
connection_id: u64,
request_id: u64,
stats: Box<TransferStats>,
},
TransferAborted {
connection_id: u64,
request_id: u64,
stats: Option<Box<TransferStats>>,
},
}Expand description
Events emitted by the provider informing about the current status.
Variants§
TaggedBlobAdded
Fields
§
format: BlobFormatThe format of the added data
A new collection or tagged blob has been added
ClientConnected
A new client connected to the node.
GetRequestReceived
Fields
§
token: Option<RequestToken>Token requester gve for this request, if any
A request was received from a client.
CustomGetRequestReceived
Fields
§
token: Option<RequestToken>Token requester gve for this request, if any
A request was received from a client.
TransferHashSeqStarted
Fields
A sequence of hashes has been found and is being transferred.
TransferBlobCompleted
Fields
A blob in a sequence was transferred.
TransferCompleted
Fields
§
stats: Box<TransferStats>statistics about the transfer
A request was completed and the data was sent to the client.
TransferAborted
Fields
§
stats: Option<Box<TransferStats>>statistics about the transfer. This is None if the transfer was aborted before any data was sent.
A request was aborted because the client disconnected.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more