pub struct BlockContext<C> {
pub config: C,
pub view: bool,
pub listen_addresses: Vec<String>,
/* private fields */
}Expand description
Typed configuration and listener metadata shared by all keys of one block.
Fields§
§config: C§view: boolTrue when setup has installed a View filter.
listen_addresses: Vec<String>Listener addresses, with an empty string denoting all addresses.
Implementations§
Source§impl<C> BlockContext<C>
impl<C> BlockContext<C>
Sourcepub fn keys(&self) -> &[ServerBlockKey]
pub fn keys(&self) -> &[ServerBlockKey]
Normalized keys that share this configuration.
Trait Implementations§
Auto Trait Implementations§
impl<C> Forget for BlockContext<C>
impl<C> Freeze for BlockContext<C>where
C: Freeze,
impl<C> Move for BlockContext<C>
impl<C> RefUnwindSafe for BlockContext<C>where
C: RefUnwindSafe,
impl<C> Send for BlockContext<C>where
C: Send,
impl<C> Sync for BlockContext<C>where
C: Sync,
impl<C> Unpin for BlockContext<C>where
C: Unpin,
impl<C> UnsafeUnpin for BlockContext<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for BlockContext<C>where
C: UnwindSafe,
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