[]Struct gio::UnixOutputStream

pub struct UnixOutputStream(_, _);

UnixOutputStream implements OutputStream for writing to a UNIX file descriptor, including asynchronous operations. (If the file descriptor refers to a socket or pipe, this will use poll to do asynchronous I/O. If it refers to a regular file, it will fall back to doing asynchronous I/O in another thread.)

Note that <gio/gunixoutputstream.h> belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file when using it.

Implements

UnixOutputStreamExt, OutputStreamExt, glib::object::ObjectExt, PollableOutputStreamExt, UnixOutputStreamExtManual, OutputStreamExtManual, PollableOutputStreamExtManual

Methods

impl UnixOutputStream[src]

pub unsafe fn new<T: IntoRawFd>(fd: T) -> UnixOutputStream[src]

Creates a new UnixOutputStream for the given fd.

If close_fd, is true, the file descriptor will be closed when the output stream is destroyed.

fd

a UNIX file descriptor

close_fd

true to close the file descriptor when done

Returns

a new OutputStream

Trait Implementations

impl AsRawFd for UnixOutputStream[src]

impl Clone for UnixOutputStream

impl Debug for UnixOutputStream

impl Display for UnixOutputStream[src]

impl Eq for UnixOutputStream

impl Hash for UnixOutputStream

impl IsA<OutputStream> for UnixOutputStream

impl IsA<PollableOutputStream> for UnixOutputStream

impl Ord for UnixOutputStream

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

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

impl StaticType for UnixOutputStream

Auto Trait Implementations

impl RefUnwindSafe for UnixOutputStream

impl !Send for UnixOutputStream

impl !Sync for UnixOutputStream

impl Unpin for UnixOutputStream

impl UnwindSafe for UnixOutputStream

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.