pub struct ClientConnection { /* private fields */ }Implementations§
Source§impl ClientConnection
impl ClientConnection
pub fn new(channel_size: ChannelSize) -> Result<Self, ErrorCode>
pub fn connect(&mut self, url: &str) -> Result<(), ErrorCode>
pub fn disconnect(&mut self)
pub fn connected(&self) -> bool
pub fn data(&self) -> &[u8]
pub fn data_mut(&mut self) -> &mut [u8]
pub fn do_rpc(&mut self, timeout: Option<Instant>) -> Result<(), ErrorCode>
pub fn req<T: Sized>(&mut self) -> &mut T
pub fn resp<T: Sized>(&self) -> &T
pub fn raw_channel(&self) -> RawChannel
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClientConnection
impl RefUnwindSafe for ClientConnection
impl Send for ClientConnection
impl Sync for ClientConnection
impl Unpin for ClientConnection
impl UnwindSafe for ClientConnection
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