70599b97b9
* Send bandwidth status messages when connecting * Rename to task_client * Move status message type to bandwidth controller
14 lines
442 B
Rust
14 lines
442 B
Rust
// Copyright 2024 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// See other comments for other TaskStatus message enumds about abusing the Error trait when we
|
|
// should have a new trait for TaskStatus messages
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum BandwidthStatusMessage {
|
|
#[error("remaining bandwidth: {0}")]
|
|
RemainingBandwidth(i64),
|
|
|
|
#[error("no bandwidth left")]
|
|
NoBandwidth,
|
|
}
|