Struct gio::OutputStreamAsyncWrite
source · pub struct OutputStreamAsyncWrite<T: IsA<PollableOutputStream>>(/* private fields */);
Implementations§
source§impl<T: IsA<PollableOutputStream>> OutputStreamAsyncWrite<T>
impl<T: IsA<PollableOutputStream>> OutputStreamAsyncWrite<T>
pub fn into_output_stream(self) -> T
pub fn output_stream(&self) -> &T
Trait Implementations§
source§impl<T: IsA<PollableOutputStream>> AsyncWrite for OutputStreamAsyncWrite<T>
impl<T: IsA<PollableOutputStream>> AsyncWrite for OutputStreamAsyncWrite<T>
source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8] ) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the object. Read moresource§fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>
fn poll_write_vectored( self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>] ) -> Poll<Result<usize>>
Attempt to write bytes from
bufs
into the object using vectored
IO operations. Read moreAuto Trait Implementations§
impl<T> Freeze for OutputStreamAsyncWrite<T>where
T: Borrow<PollableOutputStream> + AsRef<PollableOutputStream> + Into<PollableOutputStream> + ObjectType + IntoGlibPtr<*mut <T as ObjectType>::GlibType> + for<'a> ToGlibPtr<'a, *mut <T as ObjectType>::GlibType> + FromValueOptional<'static> + FromValueOptionalSealed<'static> + ToValueOptional + ToValue + ValueType + for<'a> FromValue<'a> + Hash + Ord + PartialOrd + Eq + PartialEq + Clone + Debug + StaticType + Into<ObjectRef> + UnsafeFrom<ObjectRef> + 'static + Freeze,
impl<T> !RefUnwindSafe for OutputStreamAsyncWrite<T>
impl<T> Send for OutputStreamAsyncWrite<T>where
T: Borrow<PollableOutputStream> + AsRef<PollableOutputStream> + Into<PollableOutputStream> + ObjectType + IntoGlibPtr<*mut <T as ObjectType>::GlibType> + for<'a> ToGlibPtr<'a, *mut <T as ObjectType>::GlibType> + FromValueOptional<'static> + FromValueOptionalSealed<'static> + ToValueOptional + ToValue + ValueType + for<'a> FromValue<'a> + Hash + Ord + PartialOrd + Eq + PartialEq + Clone + Debug + StaticType + Into<ObjectRef> + UnsafeFrom<ObjectRef> + 'static + Send,
impl<T> Sync for OutputStreamAsyncWrite<T>where
T: Borrow<PollableOutputStream> + AsRef<PollableOutputStream> + Into<PollableOutputStream> + ObjectType + IntoGlibPtr<*mut <T as ObjectType>::GlibType> + for<'a> ToGlibPtr<'a, *mut <T as ObjectType>::GlibType> + FromValueOptional<'static> + FromValueOptionalSealed<'static> + ToValueOptional + ToValue + ValueType + for<'a> FromValue<'a> + Hash + Ord + PartialOrd + Eq + PartialEq + Clone + Debug + StaticType + Into<ObjectRef> + UnsafeFrom<ObjectRef> + 'static + Sync,
impl<T> Unpin for OutputStreamAsyncWrite<T>where
T: Borrow<PollableOutputStream> + AsRef<PollableOutputStream> + Into<PollableOutputStream> + ObjectType + IntoGlibPtr<*mut <T as ObjectType>::GlibType> + for<'a> ToGlibPtr<'a, *mut <T as ObjectType>::GlibType> + FromValueOptional<'static> + FromValueOptionalSealed<'static> + ToValueOptional + ToValue + ValueType + for<'a> FromValue<'a> + Hash + Ord + PartialOrd + Eq + PartialEq + Clone + Debug + StaticType + Into<ObjectRef> + UnsafeFrom<ObjectRef> + 'static + Unpin,
impl<T> !UnwindSafe for OutputStreamAsyncWrite<T>
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