pub trait IStreamMethods: IStream {
Show 23 methods
// Provided methods
fn get_can_read(self) -> bool { ... }
fn get_can_seek(self) -> bool { ... }
fn get_can_timeout(self) -> bool { ... }
fn get_can_write(self) -> bool { ... }
fn get_length(self) -> i64 { ... }
fn get_position(self) -> i64 { ... }
fn set_position(self, value: impl Into<i64>) { ... }
fn get_read_timeout(self) -> i32 { ... }
fn set_read_timeout(self, value: impl Into<i32>) { ... }
fn get_write_timeout(self) -> i32 { ... }
fn set_write_timeout(self, value: impl Into<i32>) { ... }
fn close(self) { ... }
fn dispose(self) { ... }
fn dispose_2(self, disposing: impl Into<bool>) { ... }
fn flush(self) { ... }
fn run_read_write_task(
self,
read_write_task: impl Into<Stream_ReadWriteTask>,
) { ... }
fn seek(self, offset: impl Into<i64>, origin: impl Into<SeekOrigin>) -> i64 { ... }
fn set_length(self, value: impl Into<i64>) { ... }
fn read(
self,
buffer: impl Into<Array<u8>>,
offset: impl Into<i32>,
count: impl Into<i32>,
) -> i32 { ... }
fn read_byte(self) -> i32 { ... }
fn write(
self,
buffer: impl Into<Array<u8>>,
offset: impl Into<i32>,
count: impl Into<i32>,
) { ... }
fn write_byte(self, value: impl Into<u8>) { ... }
fn ctor(self) { ... }
}Provided Methods§
Sourcefn get_can_read(self) -> bool
fn get_can_read(self) -> bool
get_CanRead() overload
Sourcefn get_can_seek(self) -> bool
fn get_can_seek(self) -> bool
get_CanSeek() overload
Sourcefn get_can_timeout(self) -> bool
fn get_can_timeout(self) -> bool
get_CanTimeout() overload
Sourcefn get_can_write(self) -> bool
fn get_can_write(self) -> bool
get_CanWrite() overload
Sourcefn get_length(self) -> i64
fn get_length(self) -> i64
get_Length() overload
Sourcefn get_position(self) -> i64
fn get_position(self) -> i64
get_Position() overload
Sourcefn set_position(self, value: impl Into<i64>)
fn set_position(self, value: impl Into<i64>)
set_Position(i64) overload
Sourcefn get_read_timeout(self) -> i32
fn get_read_timeout(self) -> i32
get_ReadTimeout() overload
Sourcefn set_read_timeout(self, value: impl Into<i32>)
fn set_read_timeout(self, value: impl Into<i32>)
set_ReadTimeout(i32) overload
Sourcefn get_write_timeout(self) -> i32
fn get_write_timeout(self) -> i32
get_WriteTimeout() overload
Sourcefn set_write_timeout(self, value: impl Into<i32>)
fn set_write_timeout(self, value: impl Into<i32>)
set_WriteTimeout(i32) overload
Sourcefn run_read_write_task(self, read_write_task: impl Into<Stream_ReadWriteTask>)
fn run_read_write_task(self, read_write_task: impl Into<Stream_ReadWriteTask>)
RunReadWriteTask(crate::system::io::stream::Stream_ReadWriteTask) overload
Sourcefn seek(self, offset: impl Into<i64>, origin: impl Into<SeekOrigin>) -> i64
fn seek(self, offset: impl Into<i64>, origin: impl Into<SeekOrigin>) -> i64
Seek(i64, crate::system::io::seekorigin::SeekOrigin) overload
Sourcefn set_length(self, value: impl Into<i64>)
fn set_length(self, value: impl Into<i64>)
SetLength(i64) overload
Sourcefn read(
self,
buffer: impl Into<Array<u8>>,
offset: impl Into<i32>,
count: impl Into<i32>,
) -> i32
fn read( self, buffer: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, ) -> i32
Read(::unity::Array<u8>, i32, i32) overload
Sourcefn write(
self,
buffer: impl Into<Array<u8>>,
offset: impl Into<i32>,
count: impl Into<i32>,
)
fn write( self, buffer: impl Into<Array<u8>>, offset: impl Into<i32>, count: impl Into<i32>, )
Write(::unity::Array<u8>, i32, i32) overload
Sourcefn write_byte(self, value: impl Into<u8>)
fn write_byte(self, value: impl Into<u8>)
WriteByte(u8) overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: IStream> IStreamMethods for __T
Available on crate feature
system-io-stream only.