pub struct AmqpConfig {
pub enabled: bool,
pub port: u16,
pub host: String,
pub max_connections: usize,
pub max_channels_per_connection: u16,
pub frame_max: u32,
pub heartbeat_interval: u16,
pub fixtures_dir: Option<PathBuf>,
pub virtual_hosts: Vec<String>,
}Expand description
AMQP server configuration
Fields§
§enabled: boolEnable AMQP server
port: u16Server port
host: StringHost address
max_connections: usizeMaximum connections
max_channels_per_connection: u16Maximum channels per connection
frame_max: u32Frame max size
heartbeat_interval: u16Heartbeat interval in seconds
fixtures_dir: Option<PathBuf>Fixtures directory
virtual_hosts: Vec<String>Virtual hosts
Trait Implementations§
Source§impl Clone for AmqpConfig
impl Clone for AmqpConfig
Source§fn clone(&self) -> AmqpConfig
fn clone(&self) -> AmqpConfig
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 moreSource§impl Debug for AmqpConfig
impl Debug for AmqpConfig
Source§impl Default for AmqpConfig
impl Default for AmqpConfig
Source§impl<'de> Deserialize<'de> for AmqpConfigwhere
AmqpConfig: Default,
impl<'de> Deserialize<'de> for AmqpConfigwhere
AmqpConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AmqpConfig
impl RefUnwindSafe for AmqpConfig
impl Send for AmqpConfig
impl Sync for AmqpConfig
impl Unpin for AmqpConfig
impl UnwindSafe for AmqpConfig
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