aboutsummaryrefslogtreecommitdiff
path: root/src/client/error.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2017-01-20 15:58:00 -0800
committerAustin Hellyer <[email protected]>2017-01-20 15:58:00 -0800
commit76f9095c012a8769c7bd27aca6540b7018574c28 (patch)
tree3a99e4f470711a36218392858bfa6ce23e43a37c /src/client/error.rs
parentFix application decoding w/ rpc_origins (diff)
downloadserenity-76f9095c012a8769c7bd27aca6540b7018574c28.tar.xz
serenity-76f9095c012a8769c7bd27aca6540b7018574c28.zip
Reboot shard on broken pipe
If the receiver or sender breaks the pipe for one reason or another, shutdown both. Afterwards, close down the keepalive and perform a reboot of the shard.
Diffstat (limited to 'src/client/error.rs')
-rw-r--r--src/client/error.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/error.rs b/src/client/error.rs
index 14818d9..3975576 100644
--- a/src/client/error.rs
+++ b/src/client/error.rs
@@ -122,6 +122,7 @@ pub enum Error {
///
/// [`Context::edit_role`]: struct.Context.html#method.edit_role
RecordNotFound,
+ ShardBootFailure,
/// When the shard being retrieved from within the Client could not be
/// found after being inserted into the Client's internal vector of
/// [`Shard`]s.