pub enum ProtocolEvent {
Shutdown,
OpenStream {
sid: Sid,
prio: Prio,
promises: Promises,
guaranteed_bandwidth: Bandwidth,
},
CloseStream {
sid: Sid,
},
Message {
data: Bytes,
sid: Sid,
},
}
Expand description
used for communication with SendProtocol
and RecvProtocol
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ProtocolEvent
impl Clone for ProtocolEvent
source§fn clone(&self) -> ProtocolEvent
fn clone(&self) -> ProtocolEvent
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ProtocolEvent
impl Send for ProtocolEvent
impl Sync for ProtocolEvent
impl Unpin for ProtocolEvent
impl UnwindSafe for ProtocolEvent
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