pub enum Event {
Connect,
UpgradeTls,
Ready {
resp3: bool,
},
Reply {
token: u64,
result: Result<Value, Error>,
},
Message {
pattern: Option<Vec<u8>>,
channel: Vec<u8>,
payload: Vec<u8>,
},
Push(Value),
Retry {
attempt: u32,
},
Error(Error),
CloseTransport,
Closed,
}Variants§
Connect
UpgradeTls
Ready
Reply
Message
Push(Value)
Retry
Evaluate retryStrategy(attempt) in the host, then call retry.
Error(Error)
CloseTransport
Closed
Trait Implementations§
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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