#[non_exhaustive]pub enum MemoryUse {
Static,
Take,
Copy,
}
Expand description
The lifetime of the memory being passed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Static
The memory is statically allocated and constant; libsoup can use the passed-in buffer directly and not need to worry about it being modified or freed.
Take
The caller has allocated the memory and libsoup
will assume ownership of it and free it with free()
.
Copy
The passed-in data belongs to the caller and libsoup will copy it into new memory leaving the caller free to reuse the original memory.
Trait Implementations§
source§impl<'a> FromValue<'a> for MemoryUse
impl<'a> FromValue<'a> for MemoryUse
§type Checker = GenericValueTypeChecker<MemoryUse>
type Checker = GenericValueTypeChecker<MemoryUse>
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 MemoryUse
impl HasParamSpec for MemoryUse
source§impl Ord for MemoryUse
impl Ord for MemoryUse
source§impl PartialEq for MemoryUse
impl PartialEq for MemoryUse
source§impl PartialOrd for MemoryUse
impl PartialOrd for MemoryUse
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for MemoryUse
impl StaticType for MemoryUse
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for MemoryUse
impl Eq for MemoryUse
impl StructuralPartialEq for MemoryUse
Auto Trait Implementations§
impl RefUnwindSafe for MemoryUse
impl Send for MemoryUse
impl Sync for MemoryUse
impl Unpin for MemoryUse
impl UnwindSafe for MemoryUse
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> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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
.