Struct websocat::WebsocatConfiguration2
source · [−]pub struct WebsocatConfiguration2 {
pub opts: Options,
pub s1: SpecifierStack,
pub s2: SpecifierStack,
}
Expand description
Second representation of websocat configuration: everything (e.g. socket addresses) should already be parsed and verified A structural form: two chains of specifier nodes. Futures/async is not yet involved at this stage, but everything should be checked and ready to do to start it (apart from OS errors)
This form is designed to be editable by lints and command-line options.
Fields
opts: Options
s1: SpecifierStack
s2: SpecifierStack
Implementations
sourceimpl WebsocatConfiguration2
impl WebsocatConfiguration2
pub fn inetd_mode(&self) -> bool
pub fn websocket_used(&self) -> bool
pub fn exec_used(&self) -> bool
pub fn contains_class(&self, x: &'static str) -> bool
pub fn get_exec_parameter(&self) -> Option<&str>
pub fn lint_and_fixup(
&mut self,
on_warning: OnWarning
) -> Result<(), Box<dyn Error>>
Auto Trait Implementations
impl !RefUnwindSafe for WebsocatConfiguration2
impl !Send for WebsocatConfiguration2
impl !Sync for WebsocatConfiguration2
impl Unpin for WebsocatConfiguration2
impl !UnwindSafe for WebsocatConfiguration2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more