Trait gear_common::storage::DequeueCallbacks
source · pub trait DequeueCallbacks {
type Value;
type OnPopBack: Callback<Self::Value>;
type OnPopFront: Callback<Self::Value>;
type OnPushBack: Callback<Self::Value>;
type OnPushFront: Callback<Self::Value>;
type OnClear: EmptyCallback;
}
Expand description
Represents store of dequeue’s action callbacks.
Required Associated Types§
sourcetype Value
type Value
Callback relative type.
This value should be the main item of dequeue, which uses this callbacks store.
sourcetype OnPopFront: Callback<Self::Value>
type OnPopFront: Callback<Self::Value>
Callback on success pop_front
.
sourcetype OnPushBack: Callback<Self::Value>
type OnPushBack: Callback<Self::Value>
Callback on success push_back
.
sourcetype OnPushFront: Callback<Self::Value>
type OnPushFront: Callback<Self::Value>
Callback on success push_front
.
sourcetype OnClear: EmptyCallback
type OnClear: EmptyCallback
Callback on success clear
.