#[repr(transparent)]pub struct Room {
inner: TypedObjectRef<Room, <Room as ObjectSubclass>::ParentType>,
phantom: PhantomData<()>,
}
Expand description
GObject representation of a Matrix room.
Handles populating the Timeline.
GLib type: GObject with reference counted clone semantics.
Fields§
§inner: TypedObjectRef<Room, <Room as ObjectSubclass>::ParentType>
§phantom: PhantomData<()>
Implementations§
source§impl Room
impl Room
pub fn session(&self) -> <WeakRef<Session> as Property>::Value
pub fn room_id_string(&self) -> <PhantomData<String> as Property>::Value
pub fn aliases(&self) -> <RoomAliases as Property>::Value
pub fn name(&self) -> <RefCell<Option<String>> as Property>::Value
pub fn has_avatar(&self) -> <Cell<bool> as Property>::Value
pub fn topic(&self) -> <RefCell<Option<String>> as Property>::Value
pub fn topic_linkified(&self) -> <RefCell<Option<String>> as Property>::Value
pub fn category(&self) -> <Cell<RoomCategory> as Property>::Value
pub fn is_direct(&self) -> <Cell<bool> as Property>::Value
pub fn is_tombstoned(&self) -> <Cell<bool> as Property>::Value
pub fn predecessor_id_string( &self, ) -> <PhantomData<Option<String>> as Property>::Value
pub fn successor_id_string( &self, ) -> <PhantomData<Option<String>> as Property>::Value
pub fn successor(&self) -> <WeakRef<Room> as Property>::Value
pub fn members(&self) -> <WeakRef<MemberList> as Property>::Value
pub fn joined_members_count(&self) -> <Cell<u64> as Property>::Value
pub fn own_member(&self) -> <OnceCell<Member> as Property>::Value
pub fn inviter(&self) -> <RefCell<Option<Member>> as Property>::Value
pub fn direct_member(&self) -> <RefCell<Option<Member>> as Property>::Value
pub fn timeline(&self) -> <OnceCell<Timeline> as Property>::Value
pub fn latest_activity(&self) -> <Cell<u64> as Property>::Value
pub fn is_read(&self) -> <Cell<bool> as Property>::Value
pub fn notification_count(&self) -> <Cell<u64> as Property>::Value
pub fn has_notifications(&self) -> <Cell<bool> as Property>::Value
pub fn highlight(&self) -> <Cell<HighlightFlags> as Property>::Value
pub fn is_encrypted(&self) -> <Cell<bool> as Property>::Value
pub fn join_rule(&self) -> <JoinRule as Property>::Value
pub fn guests_allowed(&self) -> <Cell<bool> as Property>::Value
pub fn history_visibility( &self, ) -> <Cell<HistoryVisibilityValue> as Property>::Value
pub fn version(&self) -> <PhantomData<String> as Property>::Value
pub fn federated(&self) -> <PhantomData<bool> as Property>::Value
pub fn typing_list(&self) -> <TypingList as Property>::Value
pub fn notifications_setting( &self, ) -> <Cell<NotificationsRoomSetting> as Property>::Value
pub fn set_notifications_setting<'a>( &self, value: impl Borrow<<<Cell<NotificationsRoomSetting> as Property>::Value as HasParamSpec>::SetValue>, )
pub fn permissions(&self) -> <Permissions as Property>::Value
pub fn verification( &self, ) -> <BoundObjectWeakRef<IdentityVerification> as Property>::Value
pub fn set_verification<'a>( &self, value: Option<impl Borrow<<<BoundObjectWeakRef<IdentityVerification> as Property>::Value as HasParamSpec>::SetValue>>, )
pub fn connect_session_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_room_id_string_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_aliases_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_has_avatar_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_topic_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_topic_linkified_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_category_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_is_direct_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_is_tombstoned_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_predecessor_id_string_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_successor_id_string_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_successor_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_members_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_joined_members_count_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_own_member_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_inviter_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_direct_member_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_timeline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_latest_activity_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_is_read_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_notification_count_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_has_notifications_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_highlight_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_is_encrypted_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_join_rule_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_guests_allowed_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_history_visibility_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_version_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_federated_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_typing_list_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_notifications_setting_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_permissions_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn connect_verification_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
pub fn notify_session(&self)
pub fn notify_room_id_string(&self)
pub fn notify_aliases(&self)
pub fn notify_name(&self)
pub fn notify_has_avatar(&self)
pub fn notify_topic(&self)
pub fn notify_topic_linkified(&self)
pub fn notify_category(&self)
pub fn notify_is_direct(&self)
pub fn notify_is_tombstoned(&self)
pub fn notify_predecessor_id_string(&self)
pub fn notify_successor_id_string(&self)
pub fn notify_successor(&self)
pub fn notify_members(&self)
pub fn notify_joined_members_count(&self)
pub fn notify_own_member(&self)
pub fn notify_inviter(&self)
pub fn notify_direct_member(&self)
pub fn notify_timeline(&self)
pub fn notify_latest_activity(&self)
pub fn notify_is_read(&self)
pub fn notify_notification_count(&self)
pub fn notify_has_notifications(&self)
pub fn notify_highlight(&self)
pub fn notify_is_encrypted(&self)
pub fn notify_join_rule(&self)
pub fn notify_guests_allowed(&self)
pub fn notify_history_visibility(&self)
pub fn notify_version(&self)
pub fn notify_federated(&self)
pub fn notify_typing_list(&self)
pub fn notify_notifications_setting(&self)
pub fn notify_permissions(&self)
pub fn notify_verification(&self)
source§impl Room
impl Room
pub fn new( session: &Session, matrix_room: MatrixRoom, metainfo: Option<RoomMetainfo>, ) -> Self
sourcepub fn matrix_room(&self) -> &MatrixRoom
pub fn matrix_room(&self) -> &MatrixRoom
The room API of the SDK.
sourcepub fn human_readable_id(&self) -> String
pub fn human_readable_id(&self) -> String
Get a human-readable ID for this Room
.
This shows the display name and room ID to identify the room easily in logs.
sourcepub fn predecessor_id(&self) -> Option<&OwnedRoomId>
pub fn predecessor_id(&self) -> Option<&OwnedRoomId>
The ID of the predecessor of this room, if this room is an upgrade to a previous room.
sourcepub fn successor_id(&self) -> Option<&RoomId>
pub fn successor_id(&self) -> Option<&RoomId>
The ID of the successor of this Room, if this room was upgraded.
sourcepub async fn matrix_to_uri(&self) -> MatrixToUri
pub async fn matrix_to_uri(&self) -> MatrixToUri
The matrix.to
URI representation for this room.
sourcepub async fn matrix_uri(&self) -> MatrixUri
pub async fn matrix_uri(&self) -> MatrixUri
The matrix:
URI representation for this room.
sourcepub async fn matrix_to_event_uri(&self, event_id: OwnedEventId) -> MatrixToUri
pub async fn matrix_to_event_uri(&self, event_id: OwnedEventId) -> MatrixToUri
The matrix.to
URI representation for the given event in this room.
sourcepub async fn matrix_event_uri(&self, event_id: OwnedEventId) -> MatrixUri
pub async fn matrix_event_uri(&self, event_id: OwnedEventId) -> MatrixUri
The matrix:
URI representation for the given event in this room.
sourcepub fn get_or_create_members(&self) -> MemberList
pub fn get_or_create_members(&self) -> MemberList
Get or create the list of members of this room.
This creates the MemberList
if no strong reference to it exists.
sourcepub async fn ensure_direct_user(&self) -> Result<(), ()>
pub async fn ensure_direct_user(&self) -> Result<(), ()>
Ensure the direct user of this room is an active member.
If there is supposed to be a direct user in this room but they have left it, re-invite them.
This is a noop if there is no supposed direct user or if the user is already an active member.
sourcepub async fn set_category(&self, category: RoomCategory) -> MatrixResult<()>
pub async fn set_category(&self, category: RoomCategory) -> MatrixResult<()>
Set the category of this room.
This makes the necessary to propagate the category to the homeserver.
Note: Rooms can’t be moved to the invite category and they can’t be moved once they are upgraded.
sourcepub async fn toggle_reaction(
&self,
key: String,
event: &Event,
) -> Result<(), ()>
pub async fn toggle_reaction( &self, key: String, event: &Event, ) -> Result<(), ()>
Toggle the key
reaction on the given related event in this room.
sourcepub async fn send_receipt(
&self,
receipt_type: ApiReceiptType,
position: ReceiptPosition,
)
pub async fn send_receipt( &self, receipt_type: ApiReceiptType, position: ReceiptPosition, )
Send the given receipt.
sourcepub fn send_typing_notification(&self, is_typing: bool)
pub fn send_typing_notification(&self, is_typing: bool)
Send a typing notification for this room, with the given typing state.
sourcepub async fn redact<'a>(
&self,
events: &'a [OwnedEventId],
reason: Option<String>,
) -> Result<(), Vec<&'a EventId>>
pub async fn redact<'a>( &self, events: &'a [OwnedEventId], reason: Option<String>, ) -> Result<(), Vec<&'a EventId>>
Redact the given events in this room because of the given reason.
Returns Ok(())
if all the redactions are successful, otherwise
returns the list of events that could not be redacted.
sourcepub async fn report_events<'a>(
&self,
events: &'a [(OwnedEventId, Option<String>)],
) -> Result<(), Vec<&'a EventId>>
pub async fn report_events<'a>( &self, events: &'a [(OwnedEventId, Option<String>)], ) -> Result<(), Vec<&'a EventId>>
Report the given events in this room.
The events are a list of (event_id, reason)
tuples.
Returns Ok(())
if all the reports are sent successfully, otherwise
returns the list of event IDs that could not be reported.
sourcepub async fn invite<'a>(
&self,
user_ids: &'a [OwnedUserId],
) -> Result<(), Vec<&'a UserId>>
pub async fn invite<'a>( &self, user_ids: &'a [OwnedUserId], ) -> Result<(), Vec<&'a UserId>>
Invite the given users to this room.
Returns Ok(())
if all the invites are sent successfully, otherwise
returns the list of users who could not be invited.
sourcepub async fn kick<'a>(
&self,
users: &'a [(OwnedUserId, Option<String>)],
) -> Result<(), Vec<&'a UserId>>
pub async fn kick<'a>( &self, users: &'a [(OwnedUserId, Option<String>)], ) -> Result<(), Vec<&'a UserId>>
Kick the given users from this room.
The users are a list of (user_id, reason)
tuples.
Returns Ok(())
if all the kicks are sent successfully, otherwise
returns the list of users who could not be kicked.
sourcepub async fn ban<'a>(
&self,
users: &'a [(OwnedUserId, Option<String>)],
) -> Result<(), Vec<&'a UserId>>
pub async fn ban<'a>( &self, users: &'a [(OwnedUserId, Option<String>)], ) -> Result<(), Vec<&'a UserId>>
Ban the given users from this room.
The users are a list of (user_id, reason)
tuples.
Returns Ok(())
if all the bans are sent successfully, otherwise
returns the list of users who could not be banned.
sourcepub async fn unban<'a>(
&self,
users: &'a [(OwnedUserId, Option<String>)],
) -> Result<(), Vec<&'a UserId>>
pub async fn unban<'a>( &self, users: &'a [(OwnedUserId, Option<String>)], ) -> Result<(), Vec<&'a UserId>>
Unban the given users from this room.
The users are a list of (user_id, reason)
tuples.
Returns Ok(())
if all the unbans are sent successfully, otherwise
returns the list of users who could not be unbanned.
sourcepub async fn enable_encryption(&self) -> Result<(), ()>
pub async fn enable_encryption(&self) -> Result<(), ()>
Enable encryption for this room.
sourcepub async fn forget(&self) -> MatrixResult<()>
pub async fn forget(&self) -> MatrixResult<()>
Forget a room that is left.
sourcepub fn handle_ambiguity_changes<'a>(
&self,
changes: impl Iterator<Item = &'a AmbiguityChange>,
)
pub fn handle_ambiguity_changes<'a>( &self, changes: impl Iterator<Item = &'a AmbiguityChange>, )
Handle room member name ambiguity changes.
sourcefn update_latest_activity<'a>(
&self,
events: impl IntoIterator<Item = &'a Event>,
)
fn update_latest_activity<'a>( &self, events: impl IntoIterator<Item = &'a Event>, )
Update the latest activity of the room with the given events.
The events must be in reverse chronological order.
sourcepub async fn update_is_direct(&self)
pub async fn update_is_direct(&self)
Update whether the room is direct or not.
sourcepub fn update_successor(&self)
pub fn update_successor(&self)
Update the successor of this room.
sourcepub fn connect_room_forgotten<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
pub fn connect_room_forgotten<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Connect to the signal emitted when the room was forgotten.
Trait Implementations§
source§impl HasParamSpec for Room
impl HasParamSpec for Room
source§impl Ord for Room
impl Ord for Room
source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Comparison for two GObjects.
Compares the memory addresses of the provided objects.
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl ParentClassIs for Room
impl ParentClassIs for Room
type Parent = PillSource
source§impl<OT: ObjectType> PartialEq<OT> for Room
impl<OT: ObjectType> PartialEq<OT> for Room
source§impl<OT: ObjectType> PartialOrd<OT> for Room
impl<OT: ObjectType> PartialOrd<OT> for Room
source§impl StaticType for Room
impl StaticType for Room
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for Room
impl IsA<PillSource> for Room
Auto Trait Implementations§
impl Freeze for Room
impl !RefUnwindSafe for Room
impl !Send for Room
impl !Sync for Room
impl Unpin for Room
impl !UnwindSafe for Room
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
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>,
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>,
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
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,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast
will do many checks at compile-time already. downcast
will
perform the same checks at runtime as dynamic_cast
, but will also ensure some amount of
compile-time safety. Read moresource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
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,
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read moresource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> GObjectExtManualGst for O
impl<O> GObjectExtManualGst for O
fn set_property_from_str(&self, name: &str, value: &str)
source§impl<O> GObjectPropertyExpressionExt for O
impl<O> GObjectPropertyExpressionExt for O
source§fn property_expression(&self, property_name: &str) -> PropertyExpression
fn property_expression(&self, property_name: &str) -> PropertyExpression
source§fn property_expression_weak(&self, property_name: &str) -> PropertyExpression
fn property_expression_weak(&self, property_name: &str) -> PropertyExpression
source§fn this_expression(property_name: &str) -> PropertyExpression
fn this_expression(property_name: &str) -> PropertyExpression
this
object.source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)
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,
true
if the object is an instance of (can be cast to) T
.source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
ObjectClass
of the object. Read moresource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
T
of the object. Read moresource§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
source§fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
property_name
of the object and cast it to the type V. Read moresource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
property_name
of the object. Read moresource§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
property_name
of this object. Read moresource§fn find_property(&self, property_name: &str) -> Option<ParamSpec>
fn find_property(&self, property_name: &str) -> Option<ParamSpec>
ParamSpec
of the property property_name
of this object.source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
source§unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
key
. Read moresource§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,
key
. Read moresource§unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
key
. Read moresource§unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
key
. Read moresource§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,
key
. Read moresource§unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
key
. Read moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
signal_id
on this object. Read moresource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
signal_name
on this object. Read moresource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure,
) -> SignalHandlerId
fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure, ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure,
) -> SignalHandlerId
fn connect_closure_id( &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure, ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
closure
to the lifetime of the object. When
the object’s reference count drops to zero, the closure will be
invalidated. An invalidated closure will ignore any calls to
invoke_with_values
, or
invoke
when using Rust closures.source§fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
Self::emit
but takes Value
for the arguments.source§fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value],
) -> Option<Value>
fn emit_by_name_with_values( &self, signal_name: &str, args: &[Value], ) -> Option<Value>
source§fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value],
) -> Option<Value>
fn emit_by_name_with_details_and_values( &self, signal_name: &str, details: Quark, args: &[Value], ) -> Option<Value>
source§fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value],
) -> Option<Value>
fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value], ) -> Option<Value>
source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moresource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moresource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F,
) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F, ) -> SignalHandlerId
notify
signal of the object. Read more