pub(crate) fn check_port_allowed(self) -> Result<Self, DeniedUnauthorized> {
        let server = self.server.borrow();

        if server.authorizations.is_empty() {
            return Err(DeniedUnauthorized {
                kind: server.kind.clone(),
                name: server.name.clone(),
            });
        }
        drop(server);

        Ok(self)
    }
/// Checks whether the server has any authorizations at all. If it does not,
/// a denial error is returned.
Checks whether the server has any authorizations at all. If it does not,
a denial error is returned.
Checks whether the server has any authorizations at all . If it does not a denial error is returned .
pub(crate) fn check_port_allowed(self) -> Result<Self, DeniedUnauthorized> {
        let server = self.server.borrow();
        if server.authorizations.is_empty() {
            return Err(DeniedUnauthorized {
                kind: server.kind.clone(),
                name: server.name.clone(),
            });
        }
        drop(server);
        Ok(self)
    }
pub ( crate ) fn check_port_allowed ( self ) -> Result < Self , DeniedUnauthorized > { let server = self . server . borrow ( ) ; if server . authorizations . is_empty ( ) { return Err ( DeniedUnauthorized { kind : server . kind . clone ( ) , name : server . name . clone ( ) , } ) ; } drop ( server ) ; Ok ( self ) }
Checks whether the server has any authorizations at all.
Checks whether the server has any authorizations at all .
self