pub enum Notification {
Forward(Forward),
DeviceAck(Ack),
ReplicaData {
cursor: (u64, u64),
size: usize,
payload: Bytes,
},
ReplicaAcks {
offset: (u64, u64),
payload: Bytes,
},
Shadow(ShadowReply),
Unschedule,
Disconnect(Disconnect, Option<DisconnectProperties>),
}Expand description
Notification from router to connection
Variants§
Forward(Forward)
Data reply
DeviceAck(Ack)
Acks reply for connection data
ReplicaData
Data reply
ReplicaAcks
Acks reply for replication data
Shadow(ShadowReply)
Shadow
Unschedule
Disconnect(Disconnect, Option<DisconnectProperties>)
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
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 moreSource§impl Debug for Notification
impl Debug for Notification
Source§impl From<Notification> for Option<Packet>
impl From<Notification> for Option<Packet>
Source§fn from(notification: Notification) -> Self
fn from(notification: Notification) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
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