use crate::session::{Session, SessionOptions, VersionedSession};
use rasn_snmp::v2::Pdus;
use rasn_snmp::v2c::Message;
use tokio::io;
pub struct V2;
impl VersionedSession for V2 {
type Message = Message<Pdus>;
type Options = V2Options;
}
pub struct V2Options {
pub community: String,
}
impl Session<V2> {
pub async fn v2(options: SessionOptions<V2Options>) -> io::Result<Session<V2>> {
Self::new(options).await
}
}