Enum nreplops_tool::socket::Socket
source · pub enum Socket {
TcpStream(TcpStream),
SshClient(Child),
}Variants§
Implementations§
source§impl Socket
impl Socket
pub fn borrow_mut_read(&mut self) -> &mut dyn Read
pub fn borrow_mut_write(&mut self) -> &mut dyn Write
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Socket
impl Send for Socket
impl Sync for Socket
impl Unpin for Socket
impl UnwindSafe for Socket
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