Struct bgpd_rs::session::SessionManager [−][src]
pub struct SessionManager { /* fields omitted */ }
Expand description
Struct to contain active Session
s and managing
of new incoming/outbound sessions (via Poller
)
Implementations
pub fn new(
config: Arc<ServerConfig>,
listener: TcpListener,
config_watch: Receiver<Arc<ServerConfig>>
) -> Self
pub async fn get_update(
&mut self,
rib: Arc<RwLock<RIB>>
) -> Result<Option<SessionUpdate>, Box<dyn Error>>
Auto Trait Implementations
impl !RefUnwindSafe for SessionManager
impl Send for SessionManager
impl Sync for SessionManager
impl Unpin for SessionManager
impl !UnwindSafe for SessionManager
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more