[]Struct gio::MemoryInputStream

pub struct MemoryInputStream(_, _);

MemoryInputStream is a class for using arbitrary memory chunks as input for GIO streaming input operations.

As of GLib 2.34, MemoryInputStream implements PollableInputStream.

Implements

MemoryInputStreamExt, InputStreamExt, glib::object::ObjectExt, PollableInputStreamExt, SeekableExt, InputStreamExtManual, PollableInputStreamExtManual

Methods

impl MemoryInputStream[src]

pub fn new() -> MemoryInputStream[src]

Creates a new empty MemoryInputStream.

Returns

a new InputStream

pub fn new_from_bytes(bytes: &Bytes) -> MemoryInputStream[src]

Creates a new MemoryInputStream with data from the given bytes.

bytes

a glib::Bytes

Returns

new InputStream read from bytes

Trait Implementations

impl Clone for MemoryInputStream

impl Debug for MemoryInputStream

impl Default for MemoryInputStream[src]

impl Display for MemoryInputStream[src]

impl Eq for MemoryInputStream

impl Hash for MemoryInputStream

impl IsA<InputStream> for MemoryInputStream

impl IsA<PollableInputStream> for MemoryInputStream

impl IsA<Seekable> for MemoryInputStream

impl Ord for MemoryInputStream

impl<T: ObjectType> PartialEq<T> for MemoryInputStream

impl<T: ObjectType> PartialOrd<T> for MemoryInputStream

impl StaticType for MemoryInputStream

Auto Trait Implementations

impl RefUnwindSafe for MemoryInputStream

impl !Send for MemoryInputStream

impl !Sync for MemoryInputStream

impl Unpin for MemoryInputStream

impl UnwindSafe for MemoryInputStream

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.