pub enum Inbound {
Deliver(Envelope),
Acked {
id: String,
watched: bool,
},
Handshake(Frame),
Refused {
reason: String,
failed: Vec<String>,
},
}Expand description
What the receiving side of a Link should do with a frame.
Variants§
Deliver(Envelope)
Deliver this envelope, then Link::ack it.
Acked
The peer acknowledged message id; watched when Link::watch asked to hear of it.
Handshake(Frame)
A handshake frame (hello, welcome); the connection code handles it.
Refused
The credential was refused: the watched messages that were pending, now failed.
Trait Implementations§
impl StructuralPartialEq for Inbound
Auto Trait Implementations§
impl Forget for Inbound
impl Freeze for Inbound
impl Move for Inbound
impl RefUnwindSafe for Inbound
impl Send for Inbound
impl Sync for Inbound
impl Unpin for Inbound
impl UnsafeUnpin for Inbound
impl UnwindSafe for Inbound
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