pub enum Operations {
On {
tx: Sender<LogEntry>,
},
Off,
}Variants§
Implementations§
Source§impl Operations
impl Operations
pub fn turned_on(tx: Sender<LogEntry>) -> Self
pub fn turned_off() -> Self
pub fn label(&self, label: &str) -> (String, Self)
pub fn end(&self)
pub fn register_protocol(&self, label: String)
pub fn register_link(&self, label: String)
pub fn register_router(&self, label: String)
pub fn message_from(&self, label: String)
pub fn found_response_upstream(&self, label: String)
pub fn response_arrived_downstream(&self, label: String)
pub fn forward_response_downstream(&self, label: String)
pub fn forward_request_upstream(&self, label: String)
Trait Implementations§
Source§impl Clone for Operations
impl Clone for Operations
Source§fn clone(&self) -> Operations
fn clone(&self) -> Operations
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for Operations
impl RefUnwindSafe for Operations
impl Send for Operations
impl Sync for Operations
impl Unpin for Operations
impl UnwindSafe for Operations
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