[]Struct gio::BufferedOutputStream

pub struct BufferedOutputStream(_, _);

Buffered output stream implements FilterOutputStream and provides for buffered writes.

By default, BufferedOutputStream's buffer size is set at 4 kilobytes.

To create a buffered output stream, use BufferedOutputStream::new, or BufferedOutputStream::new_sized to specify the buffer's size at construction.

To get the size of a buffer within a buffered input stream, use BufferedOutputStreamExt::get_buffer_size. To change the size of a buffered output stream's buffer, use BufferedOutputStreamExt::set_buffer_size. Note that the buffer's size cannot be reduced below the size of the data within the buffer.

Implements

BufferedOutputStreamExt, FilterOutputStreamExt, OutputStreamExt, glib::object::ObjectExt, SeekableExt, OutputStreamExtManual

Implementations

impl BufferedOutputStream[src]

pub fn new<P: IsA<OutputStream>>(base_stream: &P) -> BufferedOutputStream[src]

Creates a new buffered output stream for a base stream.

base_stream

a OutputStream.

Returns

a OutputStream for the given base_stream.

pub fn new_sized<P: IsA<OutputStream>>(
    base_stream: &P,
    size: usize
) -> BufferedOutputStream
[src]

Creates a new buffered output stream with a given buffer size.

base_stream

a OutputStream.

size

a gsize.

Returns

a OutputStream with an internal buffer set to size.

Trait Implementations

impl Clone for BufferedOutputStream

impl Debug for BufferedOutputStream

impl Display for BufferedOutputStream[src]

impl Eq for BufferedOutputStream

impl Hash for BufferedOutputStream

impl IsA<FilterOutputStream> for BufferedOutputStream

impl IsA<OutputStream> for BufferedOutputStream

impl IsA<Seekable> for BufferedOutputStream

impl Ord for BufferedOutputStream

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

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

impl StaticType for BufferedOutputStream

Auto Trait Implementations

impl RefUnwindSafe for BufferedOutputStream

impl !Send for BufferedOutputStream

impl !Sync for BufferedOutputStream

impl Unpin for BufferedOutputStream

impl UnwindSafe for BufferedOutputStream

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>, 

impl<T> Cast for T where
    T: ObjectType, 

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, 

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

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

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.