logo
#[repr(u32)]
pub enum RequestNameReply {
    PrimaryOwner,
    InQueue,
    Exists,
    AlreadyOwner,
}
Expand description

The return code of the request_name method.

Variants

PrimaryOwner

The caller is now the primary owner of the name, replacing any previous owner. Either the name had no owner before, or the caller specified ReplaceExisting and the current owner specified AllowReplacement.

InQueue

The name already had an owner, DoNotQueue was not specified, and either the current owner did not specify AllowReplacement or the requesting application did not specify ReplaceExisting.

Exists

The name already has an owner, DoNotQueue was specified, and either AllowReplacement was not specified by the current owner, or ReplaceExisting was not specified by the requesting application.

AlreadyOwner

The application trying to request ownership of a name is already the owner of it.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Get the signature for the implementing type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

A DeserializeSeed implementation for this type.

Get a deserializer compatible with this signature.

Get the signature for the implementing type. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.