pub struct DataInputStream(/* private fields */);
Implementations§
Source§impl DataInputStream
impl DataInputStream
pub fn new<P: IsA<InputStream>>(base_stream: &P) -> DataInputStream
Trait Implementations§
Source§impl Clone for DataInputStream
impl Clone for DataInputStream
Source§fn clone(&self) -> DataInputStream
fn clone(&self) -> DataInputStream
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DataInputStream
impl Debug for DataInputStream
Source§impl Display for DataInputStream
impl Display for DataInputStream
Source§impl Hash for DataInputStream
impl Hash for DataInputStream
Source§impl Ord for DataInputStream
impl Ord for DataInputStream
Source§fn cmp(&self, other: &DataInputStream) -> Ordering
fn cmp(&self, other: &DataInputStream) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: ObjectType> PartialEq<T> for DataInputStream
impl<T: ObjectType> PartialEq<T> for DataInputStream
Source§impl<T: ObjectType> PartialOrd<T> for DataInputStream
impl<T: ObjectType> PartialOrd<T> for DataInputStream
Source§impl StaticType for DataInputStream
impl StaticType for DataInputStream
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for DataInputStream
impl IsA<BufferedInputStream> for DataInputStream
impl IsA<FilterInputStream> for DataInputStream
impl IsA<InputStream> for DataInputStream
impl IsA<Seekable> for DataInputStream
Auto Trait Implementations§
impl Freeze for DataInputStream
impl RefUnwindSafe for DataInputStream
impl !Send for DataInputStream
impl !Sync for DataInputStream
impl Unpin for DataInputStream
impl UnwindSafe for DataInputStream
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
Source§impl<O> BufferedInputStreamExt for Owhere
O: IsA<BufferedInputStream>,
impl<O> BufferedInputStreamExt for Owhere
O: IsA<BufferedInputStream>,
fn fill<P>(&self, count: isize, cancellable: Option<&P>) -> Result<isize, Error>where
P: IsA<Cancellable>,
fn fill_async<P, Q>( &self, count: isize, io_priority: Priority, cancellable: Option<&P>, callback: Q, )
fn get_available(&self) -> usize
fn get_buffer_size(&self) -> usize
fn peek_buffer(&self) -> Vec<u8> ⓘ
fn read_byte<P>(&self, cancellable: Option<&P>) -> Result<i32, Error>where
P: IsA<Cancellable>,
fn set_buffer_size(&self, size: usize)
fn connect_property_buffer_size_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moreSource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<O> DataInputStreamExt for Owhere
O: IsA<DataInputStream>,
impl<O> DataInputStreamExt for Owhere
O: IsA<DataInputStream>,
fn get_byte_order(&self) -> DataStreamByteOrder
fn get_newline_type(&self) -> DataStreamNewlineType
fn read_byte<P>(&self, cancellable: Option<&P>) -> Result<u8, Error>where
P: IsA<Cancellable>,
fn read_int16<P>(&self, cancellable: Option<&P>) -> Result<i16, Error>where
P: IsA<Cancellable>,
fn read_int32<P>(&self, cancellable: Option<&P>) -> Result<i32, Error>where
P: IsA<Cancellable>,
fn read_int64<P>(&self, cancellable: Option<&P>) -> Result<i64, Error>where
P: IsA<Cancellable>,
fn read_line_utf8<P>(
&self,
cancellable: Option<&P>,
) -> Result<(Option<GString>, usize), Error>where
P: IsA<Cancellable>,
fn read_uint16<P>(&self, cancellable: Option<&P>) -> Result<u16, Error>where
P: IsA<Cancellable>,
fn read_uint32<P>(&self, cancellable: Option<&P>) -> Result<u32, Error>where
P: IsA<Cancellable>,
fn read_uint64<P>(&self, cancellable: Option<&P>) -> Result<u64, Error>where
P: IsA<Cancellable>,
fn read_until<P>(
&self,
stop_chars: &str,
cancellable: Option<&P>,
) -> Result<(GString, usize), Error>where
P: IsA<Cancellable>,
fn read_until_async<P, Q>( &self, stop_chars: &str, io_priority: Priority, cancellable: Option<&P>, callback: Q, )
fn read_upto<P>(
&self,
stop_chars: &str,
cancellable: Option<&P>,
) -> Result<(GString, usize), Error>where
P: IsA<Cancellable>,
fn read_upto_async<P, Q>( &self, stop_chars: &str, io_priority: Priority, cancellable: Option<&P>, callback: Q, )
fn set_byte_order(&self, order: DataStreamByteOrder)
fn set_newline_type(&self, type_: DataStreamNewlineType)
fn connect_property_byte_order_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_newline_type_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<O> FilterInputStreamExt for Owhere
O: IsA<FilterInputStream>,
impl<O> FilterInputStreamExt for Owhere
O: IsA<FilterInputStream>,
fn get_base_stream(&self) -> Option<InputStream>
fn get_close_base_stream(&self) -> bool
fn set_close_base_stream(&self, close_base: bool)
fn connect_property_close_base_stream_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<O> InputStreamExt for Owhere
O: IsA<InputStream>,
impl<O> InputStreamExt for Owhere
O: IsA<InputStream>,
fn clear_pending(&self)
fn close<P>(&self, cancellable: Option<&P>) -> Result<(), Error>where
P: IsA<Cancellable>,
fn close_async<P, Q>( &self, io_priority: Priority, cancellable: Option<&P>, callback: Q, )
fn has_pending(&self) -> bool
fn is_closed(&self) -> bool
fn read_bytes<P>(
&self,
count: usize,
cancellable: Option<&P>,
) -> Result<Bytes, Error>where
P: IsA<Cancellable>,
fn read_bytes_async<P, Q>( &self, count: usize, io_priority: Priority, cancellable: Option<&P>, callback: Q, )
fn set_pending(&self) -> Result<(), Error>
fn skip<P>(&self, count: usize, cancellable: Option<&P>) -> Result<isize, Error>where
P: IsA<Cancellable>,
fn skip_async<P, Q>( &self, count: usize, io_priority: Priority, cancellable: Option<&P>, callback: Q, )
Source§impl<O> InputStreamExtManual for Owhere
O: IsA<InputStream>,
impl<O> InputStreamExtManual for Owhere
O: IsA<InputStream>,
fn read<B>( &self, buffer: B, cancellable: Option<&Cancellable>, ) -> Result<usize, Error>
fn read_all<B>( &self, buffer: B, cancellable: Option<&Cancellable>, ) -> Result<(usize, Option<Error>), Error>
fn read_all_async<B, Q>( &self, buffer: B, io_priority: Priority, cancellable: Option<&Cancellable>, callback: Q, )
fn read_async<B, Q>( &self, buffer: B, io_priority: Priority, cancellable: Option<&Cancellable>, callback: Q, )
fn into_read(self) -> InputStreamRead<Self>
Source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.