Enum cyfs_lib::RouterHandlerAction
source · pub enum RouterHandlerAction {
Default,
Response,
Reject,
Drop,
Pass,
}
Variants§
Implementations§
source§impl 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§
source§impl Clone for RouterHandlerAction
impl Clone for RouterHandlerAction
source§fn clone(&self) -> RouterHandlerAction
fn clone(&self) -> RouterHandlerAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RouterHandlerAction
impl Debug for RouterHandlerAction
source§impl Display for RouterHandlerAction
impl Display for RouterHandlerAction
source§impl FromStr for RouterHandlerAction
impl FromStr for RouterHandlerAction
§type Err = BuckyError
type Err = BuckyError
The associated error which can be returned from parsing.
source§impl 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
source§impl PartialEq<RouterHandlerAction> for RouterHandlerAction
impl PartialEq<RouterHandlerAction> for RouterHandlerAction
source§fn eq(&self, other: &RouterHandlerAction) -> bool
fn eq(&self, other: &RouterHandlerAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.