pub enum Event {
TaggedBlobAdded {
hash: Hash,
format: BlobFormat,
tag: Tag,
},
ClientConnected {
connection_id: u64,
},
GetRequestReceived {
connection_id: u64,
request_id: u64,
hash: Hash,
},
CustomGetRequestReceived {
connection_id: u64,
request_id: u64,
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
A new collection or tagged blob has been added
Fields
§
format: BlobFormatThe format of the added data
ClientConnected
A new client connected to the node.
GetRequestReceived
A request was received from a client.
Fields
CustomGetRequestReceived
A request was received from a client.
Fields
TransferHashSeqStarted
A sequence of hashes has been found and is being transferred.
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§
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