pub enum RelayAction {
SendData {
session_id: u32,
data: Vec<u8>,
},
TerminateConnection {
session_id: u32,
reason: String,
},
UpdateBandwidthLimit {
session_id: u32,
new_limit: u64,
},
SendKeepAlive {
session_id: u32,
},
}
Expand description
Actions that can be taken in response to relay events
Variants§
SendData
Send data to peer
TerminateConnection
Terminate connection
UpdateBandwidthLimit
Update bandwidth limit
SendKeepAlive
Send keep-alive
Trait Implementations§
Source§impl Clone for RelayAction
impl Clone for RelayAction
Source§fn clone(&self) -> RelayAction
fn clone(&self) -> RelayAction
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 RelayAction
impl RefUnwindSafe for RelayAction
impl Send for RelayAction
impl Sync for RelayAction
impl Unpin for RelayAction
impl UnwindSafe for RelayAction
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