pub enum ConnectionStatus {
WaitingForClient,
Connected,
DisconnectedCleanly,
DisconnectError(IpcRpcError),
}
Expand description
Reports the status of the connection between the server and the client
Variants§
WaitingForClient
The server is waiting for a client to connect. A client never waits for a server to connect.
Connected
The connection is active.
DisconnectedCleanly
A shutdown happened, and this was normal. Nothing unexpected happened.
DisconnectError(IpcRpcError)
An unexpected shutdown occurred, error contained within.
Implementations§
Source§impl ConnectionStatus
impl ConnectionStatus
pub fn session_end_result(&self) -> Option<Result<(), IpcRpcError>>
Trait Implementations§
Source§impl Clone for ConnectionStatus
impl Clone for ConnectionStatus
Source§fn clone(&self) -> ConnectionStatus
fn clone(&self) -> ConnectionStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ConnectionStatus
impl !RefUnwindSafe for ConnectionStatus
impl Send for ConnectionStatus
impl Sync for ConnectionStatus
impl Unpin for ConnectionStatus
impl !UnwindSafe for ConnectionStatus
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