pub enum FailureReason {
Failure,
Timeout,
Eof,
NotSupported,
}
Expand description
§Failure reason to report to the plugin framework
Variants§
Failure
§General failure
This failure reason indicates an actual error that occurred and may end up with the Falco process shutting down (after a long chain of error propagation).
All Result
values without a specific reason set default to this value
Timeout
§Timeout
This is not an actual failure but an indication that there’s no data available yet.
This code is meaningful in source plugins, in the next_batch
method.
The framework will retry the call at a later time.
Eof
§End of data
This is not an actual failure but an indication that there will be no more data.
This code is meaningful in source plugins, in the next_batch
method.
The framework will stop the event collection process cleanly.
NotSupported
§Not supported
This code indicates that an operation is not supported.
Trait Implementations§
Source§impl Clone for FailureReason
impl Clone for FailureReason
Source§fn clone(&self) -> FailureReason
fn clone(&self) -> FailureReason
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 FailureReason
impl Debug for FailureReason
Source§impl Display for FailureReason
impl Display for FailureReason
Source§impl Error for FailureReason
impl Error for FailureReason
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<FailureReason> for ss_plugin_rc
impl From<FailureReason> for ss_plugin_rc
Source§fn from(value: FailureReason) -> Self
fn from(value: FailureReason) -> Self
Converts to this type from the input type.
impl Copy for FailureReason
Auto Trait Implementations§
impl Freeze for FailureReason
impl RefUnwindSafe for FailureReason
impl Send for FailureReason
impl Sync for FailureReason
impl Unpin for FailureReason
impl UnwindSafe for FailureReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more