pub struct SlimConnection<R, W>{ /* private fields */ }Implementations§
Source§impl<R, W> SlimConnection<R, W>
impl<R, W> SlimConnection<R, W>
pub fn new(reader: R, writer: W) -> Result<Self, NewSlimConnectionError>
pub fn send_instructions( &mut self, data: &[Instruction], ) -> Result<Vec<InstructionResult>, SendInstructionsError>
pub fn close(self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<R, W> Freeze for SlimConnection<R, W>
impl<R, W> RefUnwindSafe for SlimConnection<R, W>where
W: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, W> Send for SlimConnection<R, W>
impl<R, W> Sync for SlimConnection<R, W>
impl<R, W> Unpin for SlimConnection<R, W>
impl<R, W> UnwindSafe for SlimConnection<R, W>where
W: UnwindSafe,
R: UnwindSafe,
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