Enum cyfs_lib::RouterHandlerAction
source · pub enum RouterHandlerAction {
Default,
Response,
Reject,
Drop,
Pass,
}
Variants
Implementations
sourceimpl RouterHandlerAction
impl RouterHandlerAction
pub fn to_error_code(&self) -> BuckyErrorCode
pub fn is_action_error(e: &BuckyError) -> bool
pub fn is_action_error_code(code: &BuckyErrorCode) -> bool
Trait Implementations
sourceimpl Clone for RouterHandlerAction
impl Clone for RouterHandlerAction
sourcefn clone(&self) -> RouterHandlerAction
fn clone(&self) -> RouterHandlerAction
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 moresourceimpl Debug for RouterHandlerAction
impl Debug for RouterHandlerAction
sourceimpl Display for RouterHandlerAction
impl Display for RouterHandlerAction
sourceimpl FromStr for RouterHandlerAction
impl FromStr for RouterHandlerAction
type Err = BuckyError
type Err = BuckyError
The associated error which can be returned from parsing.
sourcefn from_str(s: &str) -> BuckyResult<Self>
fn from_str(s: &str) -> BuckyResult<Self>
Parses a string
s
to return a value of this type. Read moresourceimpl JsonCodec<RouterHandlerAction> for RouterHandlerAction
impl JsonCodec<RouterHandlerAction> for RouterHandlerAction
fn encode_json(&self) -> Map<String, Value>
fn decode_json(obj: &Map<String, Value>) -> BuckyResult<Self>
fn encode_string(&self) -> String
fn decode_string(value: &str) -> Result<T, BuckyError>
fn decode_value(value: &Value) -> Result<T, BuckyError>
fn encode_value(&self) -> Value
sourceimpl PartialEq<RouterHandlerAction> for RouterHandlerAction
impl PartialEq<RouterHandlerAction> for RouterHandlerAction
sourcefn eq(&self, other: &RouterHandlerAction) -> bool
fn eq(&self, other: &RouterHandlerAction) -> bool
impl Eq for RouterHandlerAction
impl StructuralEq for RouterHandlerAction
impl StructuralPartialEq for RouterHandlerAction
Auto Trait Implementations
impl RefUnwindSafe for RouterHandlerAction
impl Send for RouterHandlerAction
impl Sync for RouterHandlerAction
impl Unpin for RouterHandlerAction
impl UnwindSafe for RouterHandlerAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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