Enum ipc_rpc::ConnectionStatus
source · [−]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
sourceimpl ConnectionStatus
impl ConnectionStatus
pub fn session_end_result(&self) -> Option<Result<(), IpcRpcError>>
Trait Implementations
sourceimpl Clone for ConnectionStatus
impl Clone for ConnectionStatus
sourcefn clone(&self) -> ConnectionStatus
fn clone(&self) -> ConnectionStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ConnectionStatus
impl Send for ConnectionStatus
impl Sync for ConnectionStatus
impl Unpin for ConnectionStatus
impl !UnwindSafe for ConnectionStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more