Enum iroh_bytes::provider::Event
source · pub enum Event {
CollectionAdded {
hash: Hash,
},
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,
},
TransferCollectionStarted {
connection_id: u64,
request_id: u64,
num_blobs: Option<u64>,
total_blobs_size: Option<u64>,
},
TransferCollectionCompleted {
connection_id: u64,
request_id: u64,
},
TransferBlobCompleted {
connection_id: u64,
request_id: u64,
hash: Hash,
index: u64,
size: u64,
},
TransferAborted {
connection_id: u64,
request_id: u64,
},
}Expand description
Events emitted by the provider informing about the current status.
Variants§
CollectionAdded
A new collection 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.
TransferCollectionStarted
Fields
A collection has been found and is being transferred.
TransferCollectionCompleted
Fields
A collection request was completed and the data was sent to the client.
TransferBlobCompleted
Fields
A blob in a collection was transferred.
TransferAborted
Fields
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