pub struct TcpStreamObject(/* private fields */);Implementations§
Source§impl TcpStreamObject
impl TcpStreamObject
pub fn local_addr( _: &mut Interpreter, _args: Vec<Value>, ) -> Result<Value, Box<dyn Error>>
pub fn peer_addr( _: &mut Interpreter, _args: Vec<Value>, ) -> Result<Value, Box<dyn Error>>
pub fn read( _: &mut Interpreter, args: Vec<Value>, ) -> Result<Value, Box<dyn Error>>
pub fn write( _: &mut Interpreter, args: Vec<Value>, ) -> Result<Value, Box<dyn Error>>
pub fn flush( _: &mut Interpreter, args: Vec<Value>, ) -> Result<Value, Box<dyn Error>>
Trait Implementations§
Source§impl Debug for TcpStreamObject
impl Debug for TcpStreamObject
Source§impl UserObject for TcpStreamObject
impl UserObject for TcpStreamObject
fn typ(&self) -> &'static str
fn get(&self, key: &str) -> Option<Value>
fn call(&self, key: &str, _args: Vec<Value>) -> Result<Value, Box<dyn Error>>
fn call_mut( &mut self, key: &str, args: Vec<Value>, ) -> Result<Value, Box<dyn Error>>
fn set(&mut self, key: &str, value: Value) -> Result<(), UserObjectError>
Auto Trait Implementations§
impl Freeze for TcpStreamObject
impl RefUnwindSafe for TcpStreamObject
impl Send for TcpStreamObject
impl Sync for TcpStreamObject
impl Unpin for TcpStreamObject
impl UnwindSafe for TcpStreamObject
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