agntcy-slim-session 0.3.0

SLIM session internal implementation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright AGNTCY Contributors (https://github.com/agntcy)
// SPDX-License-Identifier: Apache-2.0

// Standard library imports

// Third-party crates
use slim_datapath::api::ProtoMessage as Message;

use crate::context::SessionContext;

/// Session context
pub enum Notification {
    /// New session notification
    NewSession(SessionContext),
    /// Normal message notification
    NewMessage(Box<Message>),
}