Enum qiniu_http::CallbackResult
source · [−]pub enum CallbackResult {
Continue,
Cancel,
}
Expand description
回调函数调用结果
Variants
Continue
回调函数调用成功,继续执行
Cancel
回调函数调用失败,当前请求将被取消
Implementations
sourceimpl CallbackResult
impl CallbackResult
sourcepub fn is_continue(self) -> bool
pub fn is_continue(self) -> bool
是否继续执行
sourcepub fn is_cancelled(self) -> bool
pub fn is_cancelled(self) -> bool
是否取消执行
Trait Implementations
sourceimpl Clone for CallbackResult
impl Clone for CallbackResult
sourcefn clone(&self) -> CallbackResult
fn clone(&self) -> CallbackResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CallbackResult
impl Debug for CallbackResult
sourceimpl Default for CallbackResult
impl Default for CallbackResult
sourceimpl FromIterator<CallbackResult> for CallbackResult
impl FromIterator<CallbackResult> for CallbackResult
sourcefn from_iter<T: IntoIterator<Item = CallbackResult>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = CallbackResult>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl Hash for CallbackResult
impl Hash for CallbackResult
sourceimpl Not for CallbackResult
impl Not for CallbackResult
sourceimpl Ord for CallbackResult
impl Ord for CallbackResult
sourceimpl PartialEq<CallbackResult> for CallbackResult
impl PartialEq<CallbackResult> for CallbackResult
sourceimpl PartialOrd<CallbackResult> for CallbackResult
impl PartialOrd<CallbackResult> for CallbackResult
sourcefn partial_cmp(&self, other: &CallbackResult) -> Option<Ordering>
fn partial_cmp(&self, other: &CallbackResult) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for CallbackResult
impl Eq for CallbackResult
impl StructuralEq for CallbackResult
impl StructuralPartialEq for CallbackResult
Auto Trait Implementations
impl RefUnwindSafe for CallbackResult
impl Send for CallbackResult
impl Sync for CallbackResult
impl Unpin for CallbackResult
impl UnwindSafe for CallbackResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more