Skip to main content

BindingReply

Enum BindingReply 

Source
pub enum BindingReply<A, Key, Role>{
    Bound {
        request: BindingRequestId,
        current: BindingEvidence<Role>,
    },
    Rebalanced {
        request: BindingRequestId,
        prior: BindingEvidence<Role>,
        current: BindingEvidence<Role>,
    },
    Unchanged {
        request: BindingRequestId,
        current: BindingEvidence<Role>,
    },
    Unbound {
        request: BindingRequestId,
        key: Key,
        removed: BindingEvidence<Role>,
    },
    AlreadyUnbound {
        command: BindingCommand<A, Key, Role>,
    },
    Rejected {
        command: BindingCommand<A, Key, Role>,
        reason: BindingRejection,
    },
}
Expand description

Complete result of one binding management command.

Variants§

§

Bound

An absent key was bound to the requested role.

Fields

§request: BindingRequestId

Caller-authored correlation.

§current: BindingEvidence<Role>

Newly retained role and generation.

§

Rebalanced

An existing key moved to another role with a fresh generation.

Fields

§request: BindingRequestId

Caller-authored correlation.

§prior: BindingEvidence<Role>

Previously retained role and generation.

§current: BindingEvidence<Role>

Newly retained role and generation.

§

Unchanged

A same-role rebalance preserved the exact generation.

Fields

§request: BindingRequestId

Caller-authored correlation.

§current: BindingEvidence<Role>

Still-current role and generation.

§

Unbound

The exact retained binding was removed.

Fields

§request: BindingRequestId

Caller-authored correlation.

§key: Key

Key formerly owned by the binding table.

§removed: BindingEvidence<Role>

Removed role and generation.

§

AlreadyUnbound

The command expected absence and the key was already absent.

Fields

§command: BindingCommand<A, Key, Role>

Complete unchanged command for retry or inspection.

§

Rejected

The command was rejected without changing the table.

Fields

§command: BindingCommand<A, Key, Role>

Complete unchanged command for retry or inspection.

§reason: BindingRejection

Exact rejection reason.

Auto Trait Implementations§

§

impl<A, Key, Role> Freeze for BindingReply<A, Key, Role>
where Key: Freeze, Role: Freeze, A: Freeze, <A as EndpointAddress>::Established<MessageProtocol<A, BindingReply<A, Key, Role>>>: Freeze,

§

impl<A, Key, Role> RefUnwindSafe for BindingReply<A, Key, Role>

§

impl<A, Key, Role> Send for BindingReply<A, Key, Role>
where Key: Send, Role: Send + Sync, A: Send, <A as EndpointAddress>::Established<MessageProtocol<A, BindingReply<A, Key, Role>>>: Send,

§

impl<A, Key, Role> Sync for BindingReply<A, Key, Role>
where Key: Sync, Role: Sync + Send, A: Sync, <A as EndpointAddress>::Established<MessageProtocol<A, BindingReply<A, Key, Role>>>: Sync,

§

impl<A, Key, Role> Unpin for BindingReply<A, Key, Role>
where Key: Unpin, Role: Unpin, A: Unpin, <A as EndpointAddress>::Established<MessageProtocol<A, BindingReply<A, Key, Role>>>: Unpin,

§

impl<A, Key, Role> UnsafeUnpin for BindingReply<A, Key, Role>

§

impl<A, Key, Role> UnwindSafe for BindingReply<A, Key, Role>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.