pub enum DisconnectReason {
Unauthorized,
InvalidRequest,
ServerRestart,
Remote,
Other(String),
}Expand description
Why an Action Cable server hung up. Rails names four; anything else it might send in the
future arrives as Other.
Variants§
Authentication or authorization failed.
InvalidRequest
The request wasn’t a valid Action Cable upgrade.
ServerRestart
The Rails server is restarting.
Remote
The app closed this connection with ActionCable.server.disconnect.
Other(String)
Something this client doesn’t know, as the server spelled it.
Implementations§
Trait Implementations§
Source§impl Clone for DisconnectReason
impl Clone for DisconnectReason
Source§impl Debug for DisconnectReason
impl Debug for DisconnectReason
Source§impl Display for DisconnectReason
impl Display for DisconnectReason
impl Eq for DisconnectReason
Source§impl PartialEq for DisconnectReason
impl PartialEq for DisconnectReason
impl StructuralPartialEq for DisconnectReason
Auto Trait Implementations§
impl Freeze for DisconnectReason
impl RefUnwindSafe for DisconnectReason
impl Send for DisconnectReason
impl Sync for DisconnectReason
impl Unpin for DisconnectReason
impl UnsafeUnpin for DisconnectReason
impl UnwindSafe for DisconnectReason
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