pub struct UfwManager<'a> { /* private fields */ }Implementations§
Source§impl<'a> UfwManager<'a>
impl<'a> UfwManager<'a>
pub fn new(executor: &'a mut (dyn ComposeExec + Send)) -> Self
Sourcepub async fn ensure_ufw(&mut self) -> DeployResult<()>
pub async fn ensure_ufw(&mut self) -> DeployResult<()>
Ensure UFW is installed and enabled
Sourcepub async fn configure_ports(
&mut self,
ports: &[PortConfig],
) -> DeployResult<()>
pub async fn configure_ports( &mut self, ports: &[PortConfig], ) -> DeployResult<()>
Configure ports in UFW
Sourcepub async fn verify_port(
&mut self,
port: u16,
protocol: &Protocol,
) -> DeployResult<bool>
pub async fn verify_port( &mut self, port: u16, protocol: &Protocol, ) -> DeployResult<bool>
Verify port is accessible
Auto Trait Implementations§
impl<'a> Freeze for UfwManager<'a>
impl<'a> !RefUnwindSafe for UfwManager<'a>
impl<'a> Send for UfwManager<'a>
impl<'a> !Sync for UfwManager<'a>
impl<'a> Unpin for UfwManager<'a>
impl<'a> !UnwindSafe for UfwManager<'a>
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