Struct discord_rpc_client::SocketConnection
source · pub struct SocketConnection { /* private fields */ }
Trait Implementations
sourceimpl Connection for UnixConnection
impl Connection for UnixConnection
type Socket = UnixStream
fn connect() -> StdResult<Self, Error>
fn ipc_path() -> PathBuf
fn socket(&mut self) -> &mut Self::Socket
fn socket_path(n: u8) -> PathBuf
fn handshake(&mut self, client_id: u64) -> StdResult<(), Error>
fn ping(&mut self) -> StdResult<OpCode, Error>
fn send(&mut self, message: Message) -> StdResult<(), Error>
fn recv(&mut self) -> StdResult<Message, Error>
Auto Trait Implementations
impl RefUnwindSafe for UnixConnection
impl Send for UnixConnection
impl Sync for UnixConnection
impl Unpin for UnixConnection
impl UnwindSafe for UnixConnection
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