pub struct MultipartInputStream(/* private fields */);
Implementations§
Source§impl MultipartInputStream
impl MultipartInputStream
pub fn new<P: IsA<Message>, Q: IsA<InputStream>>( msg: &P, base_stream: &Q, ) -> MultipartInputStream
Trait Implementations§
Source§impl Clone for MultipartInputStream
impl Clone for MultipartInputStream
Source§fn clone(&self) -> MultipartInputStream
fn clone(&self) -> MultipartInputStream
Returns a duplicate 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 MultipartInputStream
impl Debug for MultipartInputStream
Source§impl Display for MultipartInputStream
impl Display for MultipartInputStream
Source§impl Hash for MultipartInputStream
impl Hash for MultipartInputStream
Source§impl Ord for MultipartInputStream
impl Ord for MultipartInputStream
Source§fn cmp(&self, other: &MultipartInputStream) -> Ordering
fn cmp(&self, other: &MultipartInputStream) -> 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 ParentClassIs for MultipartInputStream
impl ParentClassIs for MultipartInputStream
type Parent = InputStream
Source§impl<T: ObjectType> PartialEq<T> for MultipartInputStream
impl<T: ObjectType> PartialEq<T> for MultipartInputStream
Source§impl<T: ObjectType> PartialOrd<T> for MultipartInputStream
impl<T: ObjectType> PartialOrd<T> for MultipartInputStream
Source§impl StaticType for MultipartInputStream
impl StaticType for MultipartInputStream
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for MultipartInputStream
impl IsA<InputStream> for MultipartInputStream
Auto Trait Implementations§
impl Freeze for MultipartInputStream
impl RefUnwindSafe for MultipartInputStream
impl !Send for MultipartInputStream
impl !Sync for MultipartInputStream
impl Unpin for MultipartInputStream
impl UnwindSafe for MultipartInputStream
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<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<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 GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> 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 GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> 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 GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> 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 GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> 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 close_async_future( &self, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<(), Error>>>>
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 read_bytes_async_future( &self, count: usize, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<Bytes, Error>>>>
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, )
fn skip_async_future( &self, count: usize, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<isize, Error>>>>
Source§impl<O> InputStreamExtManual for Owhere
O: IsA<InputStream>,
impl<O> InputStreamExtManual for Owhere
O: IsA<InputStream>,
fn read<B, C>(&self, buffer: B, cancellable: Option<&C>) -> Result<usize, Error>
fn read_all<B, C>( &self, buffer: B, cancellable: Option<&C>, ) -> Result<(usize, Option<Error>), Error>
fn read_all_async<B, Q, C>( &self, buffer: B, io_priority: Priority, cancellable: Option<&C>, callback: Q, )
fn read_async<B, Q, C>( &self, buffer: B, io_priority: Priority, cancellable: Option<&C>, callback: Q, )
fn read_all_async_future<'a, B>( &self, buffer: B, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<(B, usize, Option<Error>), (B, Error)>>>>
fn read_async_future<'a, B>( &self, buffer: B, io_priority: Priority, ) -> Pin<Box<dyn Future<Output = Result<(B, usize), (B, Error)>>>>
fn into_read(self) -> InputStreamRead<Self>where
Self: IsA<InputStream>,
fn into_async_buf_read(
self,
buffer_size: usize,
) -> InputStreamAsyncBufRead<Self>where
Self: IsA<InputStream>,
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
.fn type_(&self) -> Type
fn object_class(&self) -> &Class<Object>
fn class(&self) -> &Class<T>where
T: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn set_property<'a, N, V>( &self, property_name: N, value: V, ) -> Result<(), BoolError>
fn set_property_from_value<'a, N>( &self, property_name: N, value: &Value, ) -> Result<(), BoolError>
fn set_properties( &self, property_values: &[(&str, &dyn ToValue)], ) -> Result<(), BoolError>
fn set_properties_from_value( &self, property_values: &[(&str, Value)], ) -> Result<(), BoolError>
fn property<'a, N>(&self, property_name: N) -> Result<Value, BoolError>
fn has_property<'a, N>(&self, property_name: N, type_: Option<Type>) -> bool
fn property_type<'a, N>(&self, property_name: N) -> Option<Type>
fn find_property<'a, N>(&self, property_name: N) -> Option<ParamSpec>
fn list_properties(&self) -> Vec<ParamSpec>
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
Source§unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
Safety Read more
Source§unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
Safety Read more
fn block_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn stop_signal_emission(&self, signal_name: &str)
fn connect<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
Source§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> Result<SignalHandlerId, BoolError>
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
Same as
connect
but takes a SignalId
instead of a signal name.fn connect_local<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
Source§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> Result<SignalHandlerId, BoolError>
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
Same as
connect_local
but takes a SignalId
instead of a signal name.unsafe fn connect_unsafe<'a, N, F>( &self, signal_name: N, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
Source§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> Result<SignalHandlerId, BoolError>
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> Result<SignalHandlerId, BoolError>
Same as
connect_unsafe
but takes a SignalId
instead of a signal name.Source§fn emit(
&self,
signal_id: SignalId,
args: &[&dyn ToValue],
) -> Result<Option<Value>, BoolError>
fn emit( &self, signal_id: SignalId, args: &[&dyn ToValue], ) -> Result<Option<Value>, BoolError>
Emit signal by signal id.
Source§fn emit_with_values(
&self,
signal_id: SignalId,
args: &[Value],
) -> Result<Option<Value>, BoolError>
fn emit_with_values( &self, signal_id: SignalId, args: &[Value], ) -> Result<Option<Value>, BoolError>
Same as
emit
but takes Value
for the arguments.Source§fn emit_by_name<'a, N>(
&self,
signal_name: N,
args: &[&dyn ToValue],
) -> Result<Option<Value>, BoolError>
fn emit_by_name<'a, N>( &self, signal_name: N, args: &[&dyn ToValue], ) -> Result<Option<Value>, BoolError>
Emit signal by its name.
Source§fn emit_by_name_with_values<'a, N>(
&self,
signal_name: N,
args: &[Value],
) -> Result<Option<Value>, BoolError>
fn emit_by_name_with_values<'a, N>( &self, signal_name: N, args: &[Value], ) -> Result<Option<Value>, BoolError>
Same as
emit_by_name
but takes Value
for the arguments.Source§fn emit_with_details(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue],
) -> Result<Option<Value>, BoolError>
fn emit_with_details( &self, signal_id: SignalId, details: Quark, args: &[&dyn ToValue], ) -> Result<Option<Value>, BoolError>
Emit signal with details by signal id.
Source§fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value],
) -> Result<Option<Value>, BoolError>
fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value], ) -> Result<Option<Value>, BoolError>
Same as
emit_with_details
but takes Value
for the arguments.