#[non_exhaustive]pub enum NodeErrorType {
BuildingConnectionRequest,
HttpRequestFailed,
Connecting,
OutgoingEventHasNoSession,
SerializingMessage {
message: OutgoingEvent,
},
Unauthorized {
address: SocketAddr,
authorization: String,
},
}Expand description
Type of NodeError that occurred.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BuildingConnectionRequest
Building the HTTP request to initialize a connection failed.
HttpRequestFailed
Sending the HTTP request to Lavalink failed.
Connecting
Connecting to the Lavalink server failed after several backoff attempts.
OutgoingEventHasNoSession
There are potentially no valid session before trying to send outgoing events. The session id is obtained in the startup sequence of the node. If there is an attempt to send events before connecting, it will error out.
SerializingMessage
Serializing a JSON message to be sent to a Lavalink node failed.
Fields
§
message: OutgoingEventThe message that couldn’t be serialized.
The given authorization for the node is incorrect.
Fields
The address of the node that failed to authorize.
The authorization used to connect to the node.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeErrorType
impl RefUnwindSafe for NodeErrorType
impl Send for NodeErrorType
impl Sync for NodeErrorType
impl Unpin for NodeErrorType
impl UnwindSafe for NodeErrorType
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