pub struct BinarySocketInputOutputPort {
pub header: GcHeader,
/* private fields */
}Fields§
§header: GcHeaderImplementations§
Trait Implementations§
Source§impl BinaryInputPort for BinarySocketInputOutputPort
impl BinaryInputPort for BinarySocketInputOutputPort
fn read(&mut self, _vm: &mut Vm, buf: &mut [u8]) -> Result<usize, SchemeError>
fn ahead_u8(&self) -> Option<u8>
fn set_ahead_u8(&mut self, _c: Option<u8>)
fn read_u8(&mut self, vm: &mut Vm) -> Result<Option<u8>, SchemeError>
fn read_all( &mut self, vm: &mut Vm, buf: &mut Vec<u8>, ) -> Result<usize, SchemeError>
fn lookahead_u8(&mut self, vm: &mut Vm) -> Result<Option<u8>, SchemeError>
fn unget_u8(&mut self, u: u8)
Source§impl BinaryOutputPort for BinarySocketInputOutputPort
impl BinaryOutputPort for BinarySocketInputOutputPort
fn write(&mut self, buf: &[u8]) -> Result<usize, SchemeError>
fn put_u8(&mut self, value: u8) -> Result<usize, SchemeError>
fn put_u16(&mut self, value: u16) -> Result<usize, SchemeError>
fn put_u32(&mut self, value: u32) -> Result<usize, SchemeError>
fn put_u64(&mut self, value: u64) -> Result<usize, SchemeError>
fn put_i64(&mut self, value: i64) -> Result<usize, SchemeError>
Source§impl Debug for BinarySocketInputOutputPort
impl Debug for BinarySocketInputOutputPort
Source§impl Port for BinarySocketInputOutputPort
impl Port for BinarySocketInputOutputPort
fn is_open(&self) -> bool
fn close(&mut self) -> Result<(), SchemeError>
fn input_src(&self) -> String
fn has_position(&self) -> bool
fn position(&mut self, _vm: &mut Vm) -> Result<usize, SchemeError>
fn has_set_position(&self) -> bool
fn set_position( &mut self, _vm: &mut Vm, _pos: usize, ) -> Result<usize, SchemeError>
fn buffer_mode(&self) -> BufferMode
Auto Trait Implementations§
impl Freeze for BinarySocketInputOutputPort
impl RefUnwindSafe for BinarySocketInputOutputPort
impl !Send for BinarySocketInputOutputPort
impl !Sync for BinarySocketInputOutputPort
impl Unpin for BinarySocketInputOutputPort
impl UnwindSafe for BinarySocketInputOutputPort
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