pub struct Connection { /* private fields */ }Implementations§
Source§impl Connection
impl Connection
pub fn connect( host: &str, port: i32, username: &str, password: &str, ) -> Result<Self>
pub fn setup(&mut self) -> Result<()>
pub fn enable(&mut self) -> Result<()>
pub fn config(&mut self) -> Result<()>
pub fn ensure_config(&mut self) -> Result<()>
pub fn ping(&mut self) -> Result<()>
pub fn interface_gpon(&mut self, frame: u32, slot: u32) -> Result<()>
pub fn quit(&mut self) -> Result<()>
pub fn logout(&mut self) -> Result<()>
pub fn display_ont_autofind_all(&mut self) -> Result<Vec<OntAutofindEntry>>
pub fn display_ont_info_by_sn( &mut self, serial_number: &str, ) -> Result<Option<OntInfo>>
pub fn display_ont_info_by_mac( &mut self, mac_address: &str, ) -> Result<Option<OntInfo>>
pub fn display_ont_optical_info( &mut self, port: u32, ont_id: u32, ) -> Result<Option<OpticalInfo>>
pub fn display_service_port( &mut self, fsp: Fsp, ont_id: u32, ) -> Result<Vec<ServicePort>>
pub fn ont_add( &mut self, port: u32, sn: &str, description: &str, line_profile_id: u32, service_profile_id: u32, ) -> Result<u32>
pub fn ont_delete_all(&mut self, port: u32) -> Result<()>
pub fn ont_port_native_vlan( &mut self, port: u32, ont_id: u32, ont_type: &str, vlan: u32, priority: u32, ) -> Result<()>
pub fn service_port_add(&mut self, config: &ServicePortConfig) -> Result<()>
pub fn service_port_undo(&mut self, service_port_id: u32) -> Result<()>
pub fn execute(&mut self, command: &str) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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