pub struct StreamSocket { /* private fields */ }Expand description
Stream Socket
Implementations§
Source§impl StreamSocket
impl StreamSocket
pub fn new( config: Arc<ClientConfig>, socket: SharedMultiplexerSocket, versions: Versions, ) -> Self
pub async fn create_serial_socket(&mut self) -> VersionedSerialSocket
pub fn is_stale(&self) -> bool
pub async fn create_stream_with_version<R: Request>( &mut self, request: R, version: i16, ) -> Result<AsyncResponse<R>, SocketError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamSocket
impl !RefUnwindSafe for StreamSocket
impl Send for StreamSocket
impl Sync for StreamSocket
impl Unpin for StreamSocket
impl !UnwindSafe for StreamSocket
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