pub struct BraidLayer {
pub resource_manager: Arc<ResourceStateManager>,
pub multiplexer_registry: Arc<MultiplexerRegistry>,
/* private fields */
}Expand description
Axum middleware layer for Braid protocol support.
Fields§
§resource_manager: Arc<ResourceStateManager>§multiplexer_registry: Arc<MultiplexerRegistry>Implementations§
Source§impl BraidLayer
impl BraidLayer
Sourcepub fn with_config(config: ServerConfig) -> Self
pub fn with_config(config: ServerConfig) -> Self
Create a new Braid layer with custom configuration.
Sourcepub fn config(&self) -> &ServerConfig
pub fn config(&self) -> &ServerConfig
Get a reference to the layer’s configuration.
Trait Implementations§
Source§impl Clone for BraidLayer
impl Clone for BraidLayer
Source§fn clone(&self) -> BraidLayer
fn clone(&self) -> BraidLayer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BraidLayer
impl !RefUnwindSafe for BraidLayer
impl Send for BraidLayer
impl Sync for BraidLayer
impl Unpin for BraidLayer
impl !UnwindSafe for BraidLayer
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