MCPcopy Create free account

hub / github.com/Kixunil/genio / functions

Functions102 in github.com/Kixunil/genio

↓ 48 callersMethodlen
(&self)
src/bufio.rs:143
↓ 11 callersMethodwrite_all
Attempts to write an entire buffer into this `Write`.
src/lib.rs:325
↓ 8 callersMethodread_exact
Read the exact number of bytes required to fill `buf`. This function reads as many bytes as necessary to completely fill the specified buffer `buf`.
src/lib.rs:95
↓ 4 callersMethodavailable
Gets the number of bytes in the buffer. This is the amount of data that can be returned immediately, without reading from the wrapped reader.
src/bufio.rs:182
↓ 3 callersMethodas_raw_buf
(&mut self)
src/bufio.rs:139
↓ 2 callersMethodas_ref
Get `IOError` containing references to errors.
src/error.rs:33
↓ 2 callersMethodflush
(&mut self)
src/bufio.rs:319
↓ 2 callersMethodread
(&mut self, buf: &mut [u8])
src/bufio.rs:191
↓ 2 callersMethodread
(&mut self, buf: &mut [u8])
src/lib.rs:448
↓ 2 callersMethodread
(&mut self, _buf: &mut [u8])
src/std_impls.rs:149
↓ 1 callersMethodavailable_bytes
(&self, at_least: usize)
src/lib.rs:498
↓ 1 callersMethodconsume
(&mut self, amount: usize)
src/bufio.rs:27
↓ 1 callersMethodextend_from_reader
( &mut self, reader: &mut R, )
src/std_impls.rs:85
↓ 1 callersMethodextend_from_reader_slow
( &mut self, reader: &mut R, )
src/std_impls.rs:59
↓ 1 callersMethodfill_buf
(&mut self)
src/bufio.rs:23
↓ 1 callersMethodflush_if_full
(&mut self)
src/bufio.rs:279
↓ 1 callersMethodread
(&mut self, _buf: &mut [u8])
src/util/empty.rs:10
↓ 1 callersMethodread_ext
( &'a mut self, buf: &'b mut [u8], )
src/ext.rs:64
↓ 1 callersMethodrequest_buffer
(&mut self)
src/bufio.rs:338
↓ 1 callersMethodrequire_bytes
( &mut self, amount: usize, )
src/bufio.rs:77
↓ 1 callersMethodsubmit_buffer
(&mut self, size: usize)
src/bufio.rs:349
↓ 1 callersMethodwrite
(&mut self, buf: &[u8])
src/lib.rs:457
↓ 1 callersMethodwrite_all
(&mut self, mut buf: &[u8])
src/util/write_trunc.rs:49
Methodas_ref_mut
Get `IOError` containing mutable references to errors.
src/error.rs:41
Methodavailable_bytes
Hints whether there are at least `at_least` bytes available. This function should return true if it can't determine exact amount. That is also defaul
src/lib.rs:119
Methodby_ref
Creates a "by reference" adaptor for this instance of `Read`. The returned adaptor also implements `Read` and will simply borrow this current reader.
src/lib.rs:157
Methodchain
Chains another reader after `self`. When self ends (returns Ok(0)), the other reader will provide bytes to read.
src/lib.rs:125
Functioncopy
Copies the entire contents of a reader into a writer. This function will continuously read data from reader and then write it into writer in a stream
src/util/mod.rs:38
Methodend
(&mut self)
src/util/write_only.rs:44
Methodfill_progress
(&mut self)
src/bufio.rs:222
Methodflush
(&mut self)
src/lib.rs:461
Methodflush
(&mut self)
src/std_impls.rs:24
Methodflush
(&mut self)
src/util/sink.rs:15
Methodflush
(&mut self)
src/util/write_only.rs:30
Methodflush
(&mut self)
src/util/write_trunc.rs:65
Methodflush
(&mut self)
src/util/restarting.rs:62
Methodfmt
(&self, f: &mut fmt::Formatter)
src/error.rs:179
Methodfrom
(e: E)
src/error.rs:62
Methodfrom
(writer: W)
src/util/write_only.rs:17
Methodhole
(&mut self)
src/util/write_only.rs:48
Methodinsert_placeholder
(&mut self, size: usize)
src/util/write_only.rs:56
Methodinto_inner
Unwraps inner reader. Any data in the internal buffer is lost.
src/bufio.rs:174
Methodinto_inner
Unwraps inner reader.
src/std_impls.rs:164
Methodinto_inner
Converts to lower-level reader.
src/util/restarting.rs:20
Methodinto_intr_error
(self)
src/error.rs:132
Methodmerge
Merges the variants into common type.
src/error.rs:21
Methodnew
Creates buffered reader.
src/bufio.rs:160
Methodnew
Wraps `genio` reader into `std` reader.
src/std_impls.rs:159
Methodnew
(writer: W)
src/util/write_only.rs:11
Methodnew
Initializes truncate.
src/util/write_trunc.rs:13
Methodnew
Creates restarting IO.
src/util/restarting.rs:15
Methodnew
Creates the iterator.
src/util/bytes.rs:12
Methodnew
Creates chain of readers.
src/util/chain.rs:16
Methodnext
(&mut self)
src/util/bytes.rs:20
Methodread
(&mut self, buf: &mut [u8])
src/util/repeat.rs:14
Methodread
(&mut self, buf: &mut [u8])
src/util/restarting.rs:44
Methodread
(&mut self, buf: &mut [u8])
src/util/repeat_bytes.rs:13
Methodread
(&mut self, buf: &mut [u8])
src/util/chain.rs:28
Methodread_f32
(&mut self)
src/lib.rs:215
Methodread_f64
(&mut self)
src/lib.rs:224
Methodread_i16
(&mut self)
src/lib.rs:190
Methodread_i32
(&mut self)
src/lib.rs:198
Methodread_i64
(&mut self)
src/lib.rs:206
Methodread_to_end
Reads all bytes into any type that can be extended by a reader. This is more generic than the case of `std::io` and might enable some optimizations.
src/lib.rs:136
Methodread_u16
(&mut self)
src/lib.rs:166
Methodread_u32
(&mut self)
src/lib.rs:174
Methodread_u64
(&mut self)
src/lib.rs:182
Methodremaining_bytes
Returns how many bytes remain until they will be truncated.
src/util/write_trunc.rs:21
Methodrequest_buffer
(&mut self)
src/std_impls.rs:38
Methodrequire_bytes
Helps mapping `ReadResult` to `ReadExactError` # Example Assuming a function returns `ReadExactError<T>` ```no_compile let bytes = reader.read_ext(&
src/ext.rs:23
Methodrestart_call
( mut f: F, )
src/util/restarting.rs:24
Methodsize_hint
(&mut self, bytes: usize)
src/bufio.rs:328
Methodsize_hint
(&mut self, bytes: usize)
src/lib.rs:465
Methodsize_hint
(&mut self, bytes: usize)
src/std_impls.rs:28
Methodsize_hint
(&mut self, _bytes: usize)
src/util/sink.rs:19
Methodsize_hint
(&mut self, min: usize, max: Option<usize>)
src/util/write_only.rs:34
Methodsize_hint
(&mut self, bytes: usize)
src/util/write_trunc.rs:69
Methodsize_hint
(&mut self, bytes: usize)
src/util/restarting.rs:66
Methodsubmit_buffer
(&mut self, size: usize)
src/std_impls.rs:48
Methoduses_size_hint
(&self)
src/bufio.rs:332
Methoduses_size_hint
Reports to the caller whether size hint is actually used. This can prevent costly computation of size hint that would be thrown away.
src/lib.rs:350
Methoduses_size_hint
Reports to the caller whether size hint is actually used. This can prevent costly computation of size hint that would be thrown away.
src/lib.rs:471
Methoduses_size_hint
(&self)
src/std_impls.rs:32
Methoduses_size_hint
(&self)
src/util/write_trunc.rs:77
Methoduses_size_hint
(&self)
src/util/restarting.rs:70
Methodwrite
(&mut self, data: &[u8])
src/bufio.rs:292
Methodwrite
(&mut self, buf: &[u8])
src/std_impls.rs:19
Methodwrite
(&mut self, buf: &[u8])
src/util/sink.rs:11
Methodwrite
(&mut self, buf: &[u8])
src/util/write_only.rs:26
Methodwrite
(&mut self, mut buf: &[u8])
src/util/write_trunc.rs:30
Methodwrite
(&mut self, buf: &[u8])
src/util/restarting.rs:58
Methodwrite_byte
Writes single byte. Since this is buffered, the operation will be efficient.
src/bufio.rs:108
Methodwrite_f32
(&mut self, val: f32)
src/lib.rs:430
Methodwrite_f64
(&mut self, val: f64)
src/lib.rs:438
Methodwrite_i16
(&mut self, val: i16)
src/lib.rs:395
Methodwrite_i32
(&mut self, val: i32)
src/lib.rs:403
Methodwrite_i64
(&mut self, val: i64)
src/lib.rs:411
Methodwrite_int
(&mut self, val: i64, bytes: usize)
src/lib.rs:422
Methodwrite_u16
(&mut self, val: u16)
src/lib.rs:356
Methodwrite_u32
(&mut self, val: u32)
src/lib.rs:364
next →1–100 of 102, ranked by callers