pub struct SessionReport {
pub protocol: Option<String>,
pub target: Option<String>,
pub route: String,
pub bytes_upstream: u64,
pub bytes_downstream: u64,
pub outcome: SessionOutcome,
pub failure: Option<FailureCategory>,
pub rule_id: Option<String>,
pub upstream_group: Option<String>,
pub upstream_id: Option<String>,
pub selection_reason: Option<SelectionReason>,
}Fields§
§protocol: Option<String>§target: Option<String>§route: String§bytes_upstream: u64§bytes_downstream: u64§outcome: SessionOutcome§failure: Option<FailureCategory>§rule_id: Option<String>§upstream_group: Option<String>§upstream_id: Option<String>§selection_reason: Option<SelectionReason>Implementations§
Source§impl SessionReport
impl SessionReport
pub fn open_failed( error: SessionOpenError, protocol: Option<String>, target: Option<String>, route: String, ) -> Self
pub fn completed( protocol: Option<String>, target: Option<String>, route: String, bytes_upstream: u64, bytes_downstream: u64, ) -> Self
pub fn cancelled( protocol: Option<String>, target: Option<String>, route: String, ) -> Self
pub fn rejected( protocol: Option<String>, target: Option<String>, rule_id: String, ) -> Self
Auto Trait Implementations§
impl Freeze for SessionReport
impl RefUnwindSafe for SessionReport
impl Send for SessionReport
impl Sync for SessionReport
impl Unpin for SessionReport
impl UnsafeUnpin for SessionReport
impl UnwindSafe for SessionReport
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