Enum iroh_blobs::provider::Event
source · pub enum Event {
TaggedBlobAdded {
hash: Hash,
format: BlobFormat,
tag: Tag,
},
ClientConnected {
connection_id: u64,
},
GetRequestReceived {
connection_id: u64,
request_id: u64,
hash: Hash,
},
TransferHashSeqStarted {
connection_id: u64,
request_id: u64,
num_blobs: u64,
},
TransferProgress {
connection_id: u64,
request_id: u64,
hash: Hash,
end_offset: 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
A new collection or tagged blob has been added
Fields
§
format: BlobFormat
The format of the added data
ClientConnected
A new client connected to the node.
GetRequestReceived
A request was received from a client.
Fields
TransferHashSeqStarted
A sequence of hashes has been found and is being transferred.
Fields
TransferProgress
A chunk of a blob was transferred.
These events will be sent with try_send, so you can not assume that you will receive all of them.
Fields
TransferBlobCompleted
A blob in a sequence was transferred.
Fields
TransferCompleted
A request was completed and the data was sent to the client.
Fields
§
stats: Box<TransferStats>
statistics about the transfer
TransferAborted
A request was aborted because the client disconnected.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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