pub fn unlock_port(&mut self, port_name: &String, sub_id: &String) -> Result<()> {
    match self.is_port_locked_by_someone_else(port_name, sub_id) {
      false => {
        self.write_locks.remove(port_name);
        Ok(())
      }
      true => Err(ErrorKind::AlreadyWriteLocked(port_name.to_string()).into()),
    }
  }
/// Release the write lock for the given port and sub id
Release the write lock for the given port and sub id
Release the write lock for the given port and sub id
pub fn unlock_port(&mut self, port_name: &String, sub_id: &String) -> Result<()> {
    match self.is_port_locked_by_someone_else(port_name, sub_id) {
      false => {
        self.write_locks.remove(port_name);
        Ok(())
      }
      true => Err(ErrorKind::AlreadyWriteLocked(port_name.to_string()).into()),
    }
  }
pub fn unlock_port ( & mut self , port_name : & String , sub_id : & String ) -> Result < ( ) > { match self . is_port_locked_by_someone_else ( port_name , sub_id ) { false => { self . write_locks . remove ( port_name ) ; Ok ( ( ) ) } true => Err ( ErrorKind :: AlreadyWriteLocked ( port_name . to_string ( ) ) . into ( ) ) , } }
Release the write lock for the given port and sub id
Release the write lock for the given port and sub id
&mut self
port_name
&String
sub_id
&String
&mut self
port_name
&String
sub_id
&String