pub enum MessageState {
None,
Sending,
RecoverableError,
PermanentError,
Edited,
}
Variants§
None
The message has no particular state.
Sending
The message is being sent.
RecoverableError
A transient error occurred when sending the message.
The user can try to send it again.
PermanentError
A permanent error occurred when sending the message.
The message can only be cancelled.
Edited
The message was edited.
Implementations§
source§impl MessageState
impl MessageState
sourcefn register_enum() -> Type
fn register_enum() -> Type
Registers the enum only once.
Trait Implementations§
source§impl Clone for MessageState
impl Clone for MessageState
source§fn clone(&self) -> MessageState
fn clone(&self) -> MessageState
Returns a copy 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 MessageState
impl Debug for MessageState
source§impl Default for MessageState
impl Default for MessageState
source§fn default() -> MessageState
fn default() -> MessageState
Returns the “default value” for a type. Read more
source§impl From<MessageState> for Value
impl From<MessageState> for Value
source§fn from(v: MessageState) -> Self
fn from(v: MessageState) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for MessageState
impl<'a> FromValue<'a> for MessageState
§type Checker = GenericValueTypeChecker<MessageState>
type Checker = GenericValueTypeChecker<MessageState>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl HasParamSpec for MessageState
impl HasParamSpec for MessageState
type ParamSpec = ParamSpecEnum
§type SetValue = MessageState
type SetValue = MessageState
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: MessageState) -> ParamSpecEnumBuilder<'_, MessageState>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for MessageState
impl Hash for MessageState
source§impl PartialEq for MessageState
impl PartialEq for MessageState
source§impl StaticType for MessageState
impl StaticType for MessageState
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.source§impl ToValue for MessageState
impl ToValue for MessageState
source§impl TryFromGlib<i32> for MessageState
impl TryFromGlib<i32> for MessageState
source§impl ValueType for MessageState
impl ValueType for MessageState
§type Type = MessageState
type Type = MessageState
Type to get the
Type
from. Read moreimpl Copy for MessageState
impl Eq for MessageState
impl StructuralPartialEq for MessageState
Auto Trait Implementations§
impl Freeze for MessageState
impl RefUnwindSafe for MessageState
impl Send for MessageState
impl Sync for MessageState
impl Unpin for MessageState
impl UnwindSafe for MessageState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
Compare self to
key
and return true
if they are equal.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>
Converts
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>
Converts
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<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.