BinarySocketInputOutputPort

Struct BinarySocketInputOutputPort 

Source
pub struct BinarySocketInputOutputPort {
    pub header: GcHeader,
    /* private fields */
}

Fields§

§header: GcHeader

Implementations§

Trait Implementations§

Source§

impl BinaryInputPort for BinarySocketInputOutputPort

Source§

fn read(&mut self, _vm: &mut Vm, buf: &mut [u8]) -> Result<usize, SchemeError>

Source§

fn ahead_u8(&self) -> Option<u8>

Source§

fn set_ahead_u8(&mut self, _c: Option<u8>)

Source§

fn read_u8(&mut self, vm: &mut Vm) -> Result<Option<u8>, SchemeError>

Source§

fn read_all( &mut self, vm: &mut Vm, buf: &mut Vec<u8>, ) -> Result<usize, SchemeError>

Source§

fn lookahead_u8(&mut self, vm: &mut Vm) -> Result<Option<u8>, SchemeError>

Source§

fn unget_u8(&mut self, u: u8)

Source§

impl BinaryOutputPort for BinarySocketInputOutputPort

Source§

fn write(&mut self, buf: &[u8]) -> Result<usize, SchemeError>

Source§

fn put_u8(&mut self, value: u8) -> Result<usize, SchemeError>

Source§

fn put_u16(&mut self, value: u16) -> Result<usize, SchemeError>

Source§

fn put_u32(&mut self, value: u32) -> Result<usize, SchemeError>

Source§

fn put_u64(&mut self, value: u64) -> Result<usize, SchemeError>

Source§

fn put_i64(&mut self, value: i64) -> Result<usize, SchemeError>

Source§

impl Debug for BinarySocketInputOutputPort

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for BinarySocketInputOutputPort

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl OutputPort for BinarySocketInputOutputPort

Source§

fn flush(&mut self)

Source§

impl Port for BinarySocketInputOutputPort

Source§

fn is_open(&self) -> bool

Source§

fn close(&mut self) -> Result<(), SchemeError>

Source§

fn input_src(&self) -> String

Source§

fn has_position(&self) -> bool

Source§

fn position(&mut self, _vm: &mut Vm) -> Result<usize, SchemeError>

Source§

fn has_set_position(&self) -> bool

Source§

fn set_position( &mut self, _vm: &mut Vm, _pos: usize, ) -> Result<usize, SchemeError>

Source§

fn buffer_mode(&self) -> BufferMode

Source§

impl Trace for BinarySocketInputOutputPort

Source§

fn trace(&self, gc: &mut Gc)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.