#[non_exhaustive]pub enum NodeErrorType {
BuildingConnectionRequest,
Connecting,
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.
Connecting
Connecting to the Lavalink server failed after several backoff attempts.
SerializingMessage
Serializing a JSON message to be sent to a Lavalink node failed.
Fields
§
message: OutgoingEvent
The 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